You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to haxe...@googlegroups.com
I'm trying to figure out how to load and use a neko module using just a string. For instance, if you had a list of modules in a database or config file.
For example, I can load the module from a string, but I have to explicitly define the class name when I create the instance.
var module = neko.vm.Loader.local().loadModule("HelloWorld");
var classes = module.exportsTable().__classes;
var instance = Type.createInstance(classes.HelloWorld, []);
Ideally, there'd be a way to do something like:
var instance = Type.createInstance("HelloWorld", []);