String.dump

From GiderosMobile
Revision as of 15:33, 13 July 2023 by Hgy29 (talk | contribs) (Text replacement - "</source>" to "</syntaxhighlight>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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