Home  Contents

loadstring

Global Lua Commands

SYNOPSIS

loadstring(string[,chunkname])

DESCRIPTION

Similar to load, 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.

SEE ALSO