Difference between revisions of "Importing Library Names Into Global Environment"

From OpenEUO
Jump to: navigation, search
m
(See Also)
Line 8: Line 8:
  
 
* [http://www.easyuo.com/openeuo/wiki/index.php/Simplelib simplelib]
 
* [http://www.easyuo.com/openeuo/wiki/index.php/Simplelib simplelib]
 +
 +
* [[slimport]]

Revision as of 06:44, 3 November 2010

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 or spuriously redefined.

See Also