Difference between revisions of "Newproxy"
From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> '''Class:''' (global)<br/> === Description === Creates a blank userdata, with the option for it to have a metatable....") |
|||
(One intermediate revision by the same user not shown) | |||
Line 4: | Line 4: | ||
=== Description === | === Description === | ||
+ | '''''The undocumented newproxy function was removed in Lua 5.2, since it was made redundant by other features added in that version''''': '''http://lua-users.org/cgi-bin/wiki.pl?action=browse&id=HiddenFeatures&revision=15''' | ||
+ | |||
Creates a blank userdata, with the option for it to have a metatable. | Creates a blank userdata, with the option for it to have a metatable. | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
Line 16: | Line 18: | ||
=== See Also === | === See Also === | ||
+ | '''https://luau.org/library#global-functions'''<br/> | ||
'''https://www.lua.org/pil/28.1.html''' | '''https://www.lua.org/pil/28.1.html''' | ||
{{(global)}} | {{(global)}} |
Latest revision as of 12:21, 21 July 2025
Available since: Gideros 2011.6
Class: (global)
Description
The undocumented newproxy function was removed in Lua 5.2, since it was made redundant by other features added in that version: http://lua-users.org/cgi-bin/wiki.pl?action=browse&id=HiddenFeatures&revision=15
Creates a blank userdata, with the option for it to have a metatable.
(userdata) = newproxy(addMetatable)
Parameters
addMetatable: (bool) add a metatable (default = false)
Return values
Returns (userdata) userdata is one of the basic types in Lua
See Also
https://luau.org/library#global-functions
https://www.lua.org/pil/28.1.html