AW: [Xotcl] destroy invoked by object move?

Gustaf Neumann neumann at wu-wien.ac.at
Fri Mar 17 15:33:27 CET 2006


Kristoffer Lawson schrieb:

>
> But I am guessing even this is unnecessary. Why call the destroy at  
> all? I am confident, without looking at the actual code, that  
> deallocation of the resources for the 'original' object could be  
> deallocated without going through the whole destruction procedure.

as pointed out earlier, move is a copy + destroy.
If you want a copy alone, use copy and not move.

As Artur pointed out, command names are the references to objects.
if such a reference should be made invalid and the unneeded
storage should be reclaimed at this time, destroy is the correct thing.

Note, that move does not refer to a single object, but to an object tree,
all subobjects, classes, commands, etc. are affected as well.

-gustaf neumann



More information about the Xotcl mailing list