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, 10:24 pm
|
|
In response to Crispy
|
|
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 |
In response to Lummox JR
|
|
Lummox JR wrote:
Crispy wrote: LIST=list() is always good, too. ~>Volte |
In response to 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 |
In response to Lummox JR
|
|
Lummox JR wrote:
...because the other way you're deleting the old list and creating a new one; it's a lot less efficient. Ah, didn't know that. I thought it just set the variable to an empty list. Thanks for this information. :) ~>Volte |
A safer way is to use list.Cut(). Using your example:
<code>LIST.Cut()</code>