if, for example, after messing around with a list that belongs with a player, i go and:
(Where LIST is a players list)
LIST = null
Does this just empty the variable?, I've used it a number of times it makes sence that it does, but, just to be safe...
Thanks in advance.
-Thorg
ID:173355
![]() Jan 13 2004, 11:24 pm
|
|
Crispy wrote:
A safer way is to use list.Cut(). Using your example: Of course, it depends on what you want to do. If you don't need the list anymore, setting the var to null is just as good an approach. Lummox JR |
Lummox JR wrote:
Crispy wrote: LIST=list() is always good, too. ~>Volte |
Volte wrote:
LIST=list() is always good, too. Actually if the goal is to keep an active list, then LIST.Cut() is the best solution, because the other way you're deleting the old list and creating a new one; it's a lot less efficient. Lummox JR |
A safer way is to use list.Cut(). Using your example:
<code>LIST.Cut()</code>