Skip to content

April-ANN packages => Lua modules #40

@pakozm

Description

@pakozm

In order to convert current April-ANN packages in Lua modules we need to:

  1. Remove any lateral effect, as the declaration of GLOBALs. The util package could be an exception to this rule, because it replaces some Lua functions as type or table.insert, and extends other Lua modules, as math, string, etc.
  2. Packages must be developed self-contained, in the sense of the Lua tables where the packages bind their functionalities. One package means one Lua table with the name aprilann.PACKAGE_NAME.
  3. Bindings must declare ONLY one Lua table in the GLOBALs.
  4. Formiga will prepare luaopen_aprilann_PACKAGE_NAME functions to return the table declared with the name aprilann.PACKAGE_NAME.

Any suggestions?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions