Loadstring

From OpenEUO
Revision as of 18:08, 7 October 2010 by 76.184.213.234 (Talk) (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...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
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.