Lua includes?
Is it possible to include a script file into another script like you do in C++ with #include "myfile.h"? I have some functions that several scripts needs.
And I believe 'require' is the optimal way, since it will not perform re-definitions of things that have already been defined, for instance from the file/library already having been imported. For lots of modules, this can save time.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement