• Tcl8.7 classvariable destroy

    From Julian H J Loaring@21:1/5 to All on Thu Mar 17 11:12:48 2022
    I have just started learning Tcloo and noticed that

    1) when I used classvariable, a class.Delegate is created. If I do a class destroy I have noticed that the class.Delegate is not destroyed, is this by design?

    2) I haven't found a way to discover the existence of the class.Delegate through introspection (e.g info class ..., or info object ...

    From the man page example, the following code created a Counted Class object and a Counted.Delegate object

    oo::class create Counted {
    initialise {
    variable count 0
    }

    variable number
    constructor {} {
    classvariable count
    set number [incr count]
    }

    method report {} {
    classvariable count
    puts "This is instance $number of $count"
    }
    }


    Can anyone kindly enlighten me?!

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)