LuaNET, the lua 5.1 api documentation!

Lua-Api

Core

[LUA 5.1] loadstring

function loadstring ( string, chunkname )
Similar to load, but gets the chunk from the given string.

To load and run a given string, use the idiom
Code
assert(loadstring(s))()

Comments

© 2007 DracoBlue :: Valid XHTML, CSS, RSS Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC | SourceNet © 2007, DracoBlue :: Page created in 0.224 seconds with 25 queries.