[Xotcl] Re: [Xotcl] Re: [Xotcl] Re: [Xotcl] Re: aggregate objects with autoname

Kristoffer Lawson setok at fishpool.com
Wed May 30 16:55:29 CEST 2001


On Wed, 30 May 2001, Uwe Zdun wrote:

> 
> We would propose a new:
> 
> Class instproc newChildOf {obj args} {
>   ::set name [[self] autoname -instance [namespace tail [self]]]
>   ::eval [self] create ${obj}::$name $args
> }
> 
> which would be almost identical to newChild, but allows for specifying an 
> object name...

Yes, that sounds good. If you think that will be the syntax for the next
XOTcl release then I'll change what I currently use to do the above.

         -     ---------- = = ---------//--+
         |    /     Kristoffer Lawson      |  www.fishpool.fi|.com
         +-> |    setok at fishpool.com       |  - - --+------
             |-- Fishpool Creations Ltd - /         |
             +-------- = - - - = ---------      /~setok/





More information about the Xotcl mailing list