Modules and packages

  • Modules are intended to:
    • Allow groups to share code
    • Prevent collisions between the identifiers in different Modules
  • Lua has Policies for modules and packages
    • The attempts is to define these using standard Lua structures
      • Tables
      • Functions
      • Metatables
      • Environments