No registered users in community xowiki
in last 10 minutes
in last 10 minutes
XOTcl/NX mailing list by object move?
From: Scott Gargash <scottg_at_atc.creative.com>
Date: Sun, 19 Mar 2006 05:49:20 -0700
xotcl-bounces_at_alice.wu-wien.ac.at wrote on 03/19/2006 05:32:31 AM:
>
> On 19 Mar 2006, at 14:09, Scott Gargash wrote:
>
> > xotcl-bounces_at_alice.wu-wien.ac.at wrote on 03/19/2006 04:08:40 AM:
> >
> > >
> > > On 19 Mar 2006, at 00:12, Scott Gargash wrote:
> > > >
> > > > When would you need the namespace of the object?
> > > I have only ever needed the namespace of an object which attaching
> > > traces to variables (f.ex. with Tk), but for that it is,
> > > unfortunately quite necessary.
> >
> > I haven't used it yet, but doesn't the "trace" method handle this?
>
> No. Some tk widgets map their values to Tcl variables. Other similar
> interfaces exist. It is handy to map them to an instance variable but
> for that it is necessary to have the namespaced version available.
Snit has a "myvar" method that returns the fully qualified name of a snit member variable. Perhaps
something similiar (a method that returned a "reference" to an instance variable) would be useful in
XOTcl?
Scott
Date: Sun, 19 Mar 2006 05:49:20 -0700
xotcl-bounces_at_alice.wu-wien.ac.at wrote on 03/19/2006 05:32:31 AM:
>
> On 19 Mar 2006, at 14:09, Scott Gargash wrote:
>
> > xotcl-bounces_at_alice.wu-wien.ac.at wrote on 03/19/2006 04:08:40 AM:
> >
> > >
> > > On 19 Mar 2006, at 00:12, Scott Gargash wrote:
> > > >
> > > > When would you need the namespace of the object?
> > > I have only ever needed the namespace of an object which attaching
> > > traces to variables (f.ex. with Tk), but for that it is,
> > > unfortunately quite necessary.
> >
> > I haven't used it yet, but doesn't the "trace" method handle this?
>
> No. Some tk widgets map their values to Tcl variables. Other similar
> interfaces exist. It is handy to map them to an instance variable but
> for that it is necessary to have the namespaced version available.
Snit has a "myvar" method that returns the fully qualified name of a snit member variable. Perhaps
something similiar (a method that returned a "reference" to an instance variable) would be useful in
XOTcl?
Scott