No registered users in community xowiki
in last 10 minutes
in last 10 minutes
[Xotcl] Re: aggregate objects with autoname
From: Gustaf Neumann <neumann_at_wu-wien.ac.at>
Date: Wed, 30 May 2001 17:01:07 +0200
On Wednesday 30 May 2001 16:55, Kristoffer Lawson wrote:
> 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.
it is already like proposed in the current development version...
-gustaf
Date: Wed, 30 May 2001 17:01:07 +0200
On Wednesday 30 May 2001 16:55, Kristoffer Lawson wrote:
> 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.
it is already like proposed in the current development version...
-gustaf