U
Une Bévue
in a script (a simplified L-System) i do have objects constructing other
(children) objects by :
this.createChild=function(){
return new Ant(...);
}
all of the children finished their job before the parent one then, i
wonder how to destroy (nullify?) those no more usefull objects.
saying 'o' is one of this new object i want to "destroy" it, is it
siffuciant to do :
o=null;
???
even, is it usefull (freeing memory?)
notice, by construction all of the children of a given parent, finished
them job before the parent (the destruction could only be done from the
parent, from where the child is named-identified).
(children) objects by :
this.createChild=function(){
return new Ant(...);
}
all of the children finished their job before the parent one then, i
wonder how to destroy (nullify?) those no more usefull objects.
saying 'o' is one of this new object i want to "destroy" it, is it
siffuciant to do :
o=null;
???
even, is it usefull (freeing memory?)
notice, by construction all of the children of a given parent, finished
them job before the parent (the destruction could only be done from the
parent, from where the child is named-identified).