document a gotcha

akkartik
Jan 6, 2025, 9:23 PM
IXHSSD6U2EAJA5TJWC3UQ45XQHZVUWRU3GOIF43XJ6YPSWNPDO5QC

Dependencies

Change contents

  • edit in README.md at line 53
    [2.13]
    [5.79]
    * This approach puts one top-level definition per file, and so obscures the
    order in which definitions are loaded. In particular, initializing a global
    table to contain other global definitions will fail if you originally
    authored the other global definitions after the table.
    I never initialize global tables with other definitions. That kind of thing
    happens in `on.initialize` (akin to `love.load`; see reference.md) or
    `on.code_change`.