View · Search · Index
No registered users in community xowiki
in last 10 minutes

Re: [Xotcl] "tie" command

From: Zoran Vasiljevic <zoran_at_archiware.com>
Date: Fri, 24 Jan 2003 10:46:16 +0100

On Friday 24 January 2003 04:32, Kristoffer Lawson wrote:
> Been thinking if this would make sense:
>
> while {$stuff} {
> tie myVar [MyClass new]
> ...
> }

Wait...

You know about:

  set myVar [MyClass new -volatile]

?

When the myVar goes out of scope, the destructor
is automatically called. It's been there since 0.9.4
or so, IIRC.

Cheers
Zoran