mirror of
https://github.com/foo-dogsquared/wiki.git
synced 2025-01-30 22:57:59 +00:00
627 B
627 B
Lua modules
- for future references, this is documented from the Lua manual
- to use the modules from
lua
, you can callrequire
builtin; therequire
'd module are stored in a tablepackages.loaded
and its content will be loaded inside of a function; the module will only load once and it will only cache the return value - to unload a module, you can set the package from the package table to null (i.e.,
nil
)