Module pl.strict
Checks uses of undeclared global variables.
All global variables must be ‘declared’ through a regular assignment (even assigning nil will do) in a main chunk before being used anywhere or assigned to inside a function. Existing metatables' newindex and index metamethods are respected.
You can set any table to have strict behaviour using strict.module
Functions
module (name, mod, predeclared) | make an existing table strict. |