AW: [Xotcl] destroy invoked by object move?

Scott Gargash scottg at atc.creative.com
Sun Mar 19 13:49:20 CET 2006






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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://alice.wu-wien.ac.at/pipermail/xotcl/attachments/20060319/9842cac4/attachment-0001.html


More information about the Xotcl mailing list