 |
forums.ps2dev.org Homebrew PS2, PSP & PS3 Development Discussions
|
| View previous topic :: View next topic |
| Author |
Message |
psiko_scweek
Joined: 12 Nov 2005 Posts: 42
|
Posted: Thu Nov 17, 2005 6:19 pm Post subject: Question About Variables... |
|
|
ok, i know that in LUA its EASY to make variables just go
blah = blah
and its done. but, how do you unload a variable or whatever?
does
blah = nil
work? just asking! thanks!
oh yeah, and if that does work, how does lua deal with local variables? does it automatically unload them or whatnot?
if im not making any sense just let me know, im kinda new at this whole making games thing. lol.
thanks!
~PSIKO |
|
| Back to top |
|
 |
LuMo
Joined: 21 Aug 2005 Posts: 410 Location: Austria
|
Posted: Thu Nov 17, 2005 7:25 pm Post subject: |
|
|
lua has an build in trash collector
so if an var is no more used, it just removes it....
greets
lumo _________________ "Good artists copy, great artists steal."
Pablo Picasso
go2lumo.com |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|