Require

From GiderosMobile
Revision as of 10:02, 23 August 2018 by Hgy29 (talk | contribs) (Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === Loads and runs libraries. Roughly, `require` does the same job as `dofile`, but, `require` searches fo...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Available since: Gideros 2011.6

Description

Loads and runs libraries. Roughly, `require` does the same job as `dofile`, but, `require` searches for the file in a path. Because of that, `require` is the preferred function in Lua for loading libraries.

= require(packagename,)

'packagename: (string) library to load '