Difference between revisions of "String.dump"

From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
<languages />
+
'''Available since:''' Gideros 2011.6<br/>
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
+
'''Class:''' [[string]]<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/string|string]]<br/>
+
 
=== <translate>Description</translate> ===
+
=== Description ===
<translate>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.</translate>
+
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.
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
(string) = string.dump(function)
 
(string) = string.dump(function)
</source>
+
</syntaxhighlight>
=== <translate>Parameters</translate> ===
+
 
'''function''': (function) <translate>function to convert to string</translate> <br/>
+
=== Parameters ===
=== <translate>Return values</translate> ===
+
'''function''': (function) function to convert to string<br/>
'''<translate>Returns</translate>''' (string) <translate>string representation of function</translate><br/>
+
 
 +
=== Return values ===
 +
'''Returns''' (string) string representation of function<br/>
 +
 
 +
{{String}}

Latest revision as of 15: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