From D Groth@21:1/5 to All on Wed Mar 22 05:30:04 2023
Dear all,
I just looked around in the Tcl manual for 8.7. We have there mymethod (or callback) as in Snit for creating callbacks in the global scope for TclOO objects, but we do not have myvar as we have in Snit. I helped my self with:
which does the job. Is myvar is missing in Tcl 8.7 by accident? Or what is an other approach to create a fully qualified variable for options like -variable or -textvariable in Tcl 8.7 within a TclOO class?
PS: As a reminder the code for mymethod in 8.6 was:
proc ::oo::Helpers::mymethod {method args} {
list [uplevel 1 {namespace which my}] $method {*}$args