Description: |
(text/x-fossil-wiki)
The script inlined below crashes the interpreter on execution, for Tcl 8.5 as of today [http://core.tcl.tk/tcl/info/a3e6750fec|tcl:a3e6750fec], in combination with TclOO 1.0.4 as of today [e5b56214c7].
Notable, it does *not* crash with Tcl 8.6+ and its integrated TclOO.
I suspect that the backport of a bugfix was not done quite right for 8.5.
<pre>
package require Tcl 8.5
package require TclOO
oo::class create ::trial {
method trial {} {
my destroy
puts AAA
puts [self namespace] ;# --- crash
puts BBB
}
}
trial create T
T trial
</pre>
|