Compiler directive - Include file

Dec 17, 2010 at 9:42 AM

Hi,

do you think makes sense to add something similar to a #include directive that includes another js source file?

sometimes the scripting involves more than just a few lines of code and separating concerns in multiple files would allow better management of the js source.

as a workaround i ended up implementing a registered "include" method at runtime into the jint engine which loads content from the file and adds it into the engine, works for me but i wanted to see if this kind of functionality can be available built-in..