Yes, if it is a local variable then it will be destroyed as soon as the
variable goes out of scope. In this case, the variable will go out of scope
when the function returns provided it is not declared inside of another
scope in the function such as an if statement or a loop. Then it will be
destroyed even before the function returns, specifically when the execution
leaves that scope.
Kind regards,
Philip Bennefall
----- Original Message -----
From: "john" <[email protected]>
To: <[email protected]>; "Gamers Discussion list" <[email protected]>
Sent: Friday, August 23, 2013 10:41 PM
Subject: Re: [Audyssey] looking for some programming help
Awesome. While I'm looking for info, does the engine
automatically clean up variables that are no longer in use? I
have a commonly-called method, which creates a variable. Will
that variable be destroyed when the method is finished?
Thanks,
John.
----- Original Message -----
From: Philip Bennefall <[email protected]
To: Gamers Discussion list <[email protected]
Date sent: Fri, 23 Aug 2013 22:33:57 +0200
Subject: Re: [Audyssey] looking for some programming help
Then I recommend looking at the methods that I mentioned in the
array class.
They can remove an item either from the end of the array in the
case of
remove_last, or from any arbitrary position in the case of
remove_at.
Kind regards,
Philip Bennefall
---
Gamers mailing list __ [email protected]
If you want to leave the list, send E-mail to [email protected].
You can make changes or update your subscription via the web, at
http://audyssey.org/mailman/listinfo/gamers_audyssey.org.
All messages are archived and can be searched and read at
http://www.mail-archive.com/[email protected].
If you have any questions or concerns regarding the management of the list,
please send E-mail to [email protected].