Difference between revisions of "Object:release"
m |
m (updated version from 0.11.0 to 11.0) |
||
(3 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
− | {{newin|[[ | + | {{newin|[[11.0]]|110|type=function}} |
− | Destroys the | + | Destroys the object's Lua reference. The object will be completely deleted if it's not referenced by any other LÖVE object or thread. |
This method can be used to immediately clean up resources without waiting for Lua's garbage collector. | This method can be used to immediately clean up resources without waiting for Lua's garbage collector. | ||
Line 21: | Line 21: | ||
[[Category:Functions]] | [[Category:Functions]] | ||
− | {{#set:Description= | + | {{#set:Description=Immediately destroys the object's Lua reference.}} |
Latest revision as of 12:36, 2 April 2018
Available since LÖVE 11.0 |
This function is not supported in earlier versions. |
Destroys the object's Lua reference. The object will be completely deleted if it's not referenced by any other LÖVE object or thread.
This method can be used to immediately clean up resources without waiting for Lua's garbage collector.
After this method has been called, attempting to call any other method on the object or using the object as an argument in another LÖVE API will cause an error. |
Function
Synopsis
success = Object:release( )
Arguments
None.
Returns
boolean success
- True if the object was released by this call, false if it had been previously released.
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info