Using a build from ActiveState, if I throw an error from inside an itcl::ensemble, the interpreter core dumps. This is very easy to reproduce - simply source this file and you get a crash.
#--Tcl-- the next line restarts using tclsh \
exec tclsh "$0" "$@"
package require Tcl 8.6.7
package require Itcl 4.1.0
itcl::ensemble myensemble part dothing {args} {
error "wait, what?"
}
myensemble dothing here
Yes, I realize that [namespace ensemble] is now a thing, but I am transitioning from Tcl 8.4 to 8.6, and I do not have namespace ensemble available. Our entire code base is now subject to this crazy bug.
Itcl_InvokeEnsembleMethod is failing to set a ProcErrorProc.
Is there a way to work around this issue temporarily?
By all appearances, in the entire Itcl 4 development history, this just hasn't been done. I suspect it's not hard to do, but I'm not ready to predict a completion date.
You can keep using Itcl 3.4.4 with Tcl 8.6 in the meantime.
Fixed for Itcl 4.1.2