Loadfile

From GiderosMobile
Revision as of 13:32, 23 August 2018 by Hgy29 (talk | contribs)

Available since: Gideros 2011.6

Description

Loads a chunk from the file without execution.

If there are no errors, returns the compiled chunk as a function; otherwise, returns nil plus the error message. The environment of the returned function is the global environment.
(function) = loadfile(filename)

Parameters

filename: (string) name of the file to load

Return values

Returns (function) compiled chunk as a function; otherwise, returns nil