Main Connecting Starting



Building: Lua Modules

You can now import chunks of lua stored in other attributes on other objects when a trap is executed. We have one importing function: import, which takes two arguments, an object and an attribute name. If the attribute name is absent, lua.lib is used. If the attribute name does not start with lua., it will be automatically prepended to the attribute you supplied.

import treats the contents of object::attribute as a single lua function with no arguments, and executes it, returning all the return values the function produced.