Question About Variables...

Discuss using and improving Lua and the Lua Player specific to the PSP.

Moderators: Shine, Insert_witty_name

Post Reply
psiko_scweek
Posts: 42
Joined: Sat Nov 12, 2005 2:30 am

Question About Variables...

Post by psiko_scweek »

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
LuMo
Posts: 410
Joined: Sun Aug 21, 2005 2:45 am
Location: Austria
Contact:

Post by LuMo »

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
Post Reply