Copy constructor in itcl
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Copy constructor in itcl

From: <amit.zaroo@gmail.com>
Date: Wed Mar 29 2006 - 06:57:16 CEST

Hi,
I have a problem here in which I need to copy an object and then
configure it.
suppose I have "object1" I need to create a separate object "object2"
which copies all attributes of object1 but is a separate entity.
Similar to a copy constructor in C++.
I then want to tweak some of the vairables/values of the newly created
object.

Is there some way of implementing this in Itcl.

-Amit
Received on Sun Apr 30 02:52:36 2006