Re: itcl destructor



Dnia Tue, 30 Aug 2005 19:43:39 +0200, Antonio Ceballos skrobie:
> Hi all,

> Is there a way to destruct itclobjects? I have not found it.

If you want to plan the cleanup after object, use "destructor"
declaration in a class.

If you want to destroy a Itcl object:

1. For normal, dynamic object, use "delete object" command

2. If you create an object as itcl::local, the object will be
destroyed at the end of the procedure it was created in


--
// _ ___ Michal "Sektor" Malecki <sektor(whirl)kis.p.lodz.pl>
\\ L_ |/ `| /^\ ,() <ethourhs(O)wp.pl>
// \_ |\ \/ \_/ /\ C++ bez cholesterolu: http://www.intercon.pl/~sektor/cbx
"Java does not have pointers!"
.