Difference between revisions of "Loadstring"

From OpenEUO
Jump to: navigation, search
(Created page with " loadstring (string [, chunkname]) Similar to loadfile, but gets the chunk from the given string. To load and run a given string, use the idiom assert(loadstring(s))() W...")
(No difference)

Revision as of 18:08, 7 October 2010

loadstring (string [, chunkname])

Similar to loadfile, but gets the chunk from the given string.

To load and run a given string, use the idiom

    assert(loadstring(s))()

When absent, chunkname defaults to the given string.