Importing Library Names Into Global Environment

From OpenEUO
Revision as of 16:13, 1 November 2010 by Ximan (Talk | contribs) (Created page with "All top level library methods can be imported into the global environment _G, though this usage is strongly discouraged, especially for authors of intermediate libraries. ...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

All top level library methods can be imported into the global environment _G, though this usage is strongly discouraged, especially for authors of intermediate libraries.

 sl.slimport('lower'|'upper'|'camel')

The library names have been selected to minimize interference with other libraries and lua itself, however, importing them can result in undetectable errors of usage such as having them later accidentally redefined.