Demo script:
package require Itcl itcl::class C {C #auto}
This crashes after displaying the following:
before Itcl_RegisterObjectVariable hPtr2 == NULL!
This is not a recent regression. Any guidance on what the right behavior ought to be?
(Yes, yes, I know it starts with "don't crash")
Well, this is a weird thing to do, I think. The demo script is creating a command [::itcl::parser::c0]. Hard to imagine that's ever the intent.
That said, it works in Itcl 3, and if we just revise the panic to a more forgiving reaction, it can work in Itcl 4 too it seems
Ok, check this out:
% package require Itcl 3.4 % itcl::class C { C ::x } % itcl::delete object x make: *** [shell] Segmentation fault
Fixed the problem with Itcl 3.
Then replaced the panic with acceptance.
Will have to see what new bugs this exposes.
Log in to post a comment.
This is not a recent regression. Any guidance on what the right behavior ought to be?
(Yes, yes, I know it starts with "don't crash")
Well, this is a weird thing to do, I think. The demo script is creating a command [::itcl::parser::c0]. Hard to imagine that's ever the intent.
That said, it works in Itcl 3, and if we just revise the panic to a more forgiving reaction, it can work in Itcl 4 too it seems
Ok, check this out:
Fixed the problem with Itcl 3.
Then replaced the panic with acceptance.
Will have to see what new bugs this exposes.