put some work in and now this should work. the windows port still needs a couple of lines of code but should work soon too.
what we've got now? script packages can now be build outside of the script-engine source tree and thus the sub-project should aproach a first release more and more.
the following can be done.
by default packages will be looked for under /usr/lib/dragonscript . each package has to be located in there in its own sub directory. the directory name (with case) is the name of the package itself. so for example:
the package with name 'MyPackage' would be located under /usr/lib/dragonscript/MyPackage and would be loaded using the command requires "MyPackage" from a script.
the packages can be composed of script files (*.ds) and/or a native class library file (libClasses.so). a package can have an unlimited number of script files that can be in the package directory itself or in sub directories of it. thus all *.ds files under the MyPackage directory are parsed.
in addition the package can have one and only one native class library that has to be named 'libClasses.so' residing in the MyPackage directory and not in a sub directory. i'll add a code example in the documentation for this case but it's rather simple to use. you need to write one entry function bool CreatePackage(dsPackageWrapper *wrapper). inside this function you create your native classes and add them using wrapper->AddNativeClass(dsClass*). that's all. more you don't need to do except initializing the native class correctly, which will be in the docs too.
so now you can start creating script packages. if you only use scripts this is not a big deal.
Found a bug in the language, the VM or the compiler? help us iron things out or give ideas for doing things better.
Post Reply[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
1 post[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
•Page 1 of 1
•Page 1 of 1