Difference between revisions of "String.dump"
From GiderosMobile
| m (Text replacement - "</source>" to "</syntaxhighlight>") | |||
| (One intermediate revision by the same user not shown) | |||
| Line 5: | Line 5: | ||
| === Description === | === 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. | 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. | ||
| − | < | + | <syntaxhighlight lang="lua"> | 
| (string) = string.dump(function) | (string) = string.dump(function) | ||
| − | </ | + | </syntaxhighlight> | 
| === Parameters === | === Parameters === | ||
Latest revision as of 14:33, 13 July 2023
Available since: Gideros 2011.6
Class: string
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
