lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Jason P wrote:

Also, is an external .lua script with each module really
needed? I mean you could embed the test script and call it with a:

const char *luaLM_test(void);

perhaps? Eliminating the need for two files for each module.

There's one reason for doing it the *.lua stub-loader script way:
flexibility. This way any kind of dynamically loadable module can be used via a standard convention for the user. The script defines how the module is loaded. (This is important when the module is not core part of LuaCheia... )

Another is the fact that a LuaCheia module need by no means be a binary modules. It can be a Lua-only module, whatever.