Difference between revisions of "String.dump"
From GiderosMobile
Line 6: | Line 6: | ||
(string) = string.dump(function) | (string) = string.dump(function) | ||
</source> | </source> | ||
− | '''function''': (function) function to convert to string | + | === Parameters === |
+ | '''function''': (function) function to convert to string <br/> | ||
+ | === Return values === | ||
'''Returns''' (string) string representation of function<br/> | '''Returns''' (string) string representation of function<br/> |
Revision as of 10:45, 23 August 2018
Available since: Gideros 2011.6
Description
Returns a string containing a binary representation of the given function, so that a later loadstring on this string returns a copy of the function. function must be a Lua function without upvalues.
(string) = string.dump(function)
Parameters
function: (function) function to convert to string
Return values
Returns (string) string representation of function