JarrettBillingsley / Croc

Croc is an extensible extension language in the vein of Lua, which also wishes it were a standalone language. Also it's fun.
http://www.croc-lang.org
79 stars 12 forks source link

Having modules.initModule public might be a bad idea #93

Closed JarrettBillingsley closed 10 years ago

JarrettBillingsley commented 10 years ago

It can bypass the normal module loading mechanism, meaning you can end up with strange situations like modules with the same names as packages. croc.ex.importModuleFromString actually suffers from this problem.

initModule should probably not be a public interface function.