Menu

#1069 "$type info instances" corrupted after object-creation error

open
snit (26)
5
2008-09-16
2008-09-16
No

= VERSION and PLATFORM
snit 2.2.1
tclkit 8.5.2 - Windows XP

= HOW TO REPRODUCE ERROR

Let's take the simplest snit-widget:

snit::widget myWidget {
}

and let's create a myWidget instance named ".x" :

myWidget .x
myWidget info instances
# OK --> .x

Now, if I (wrongly) try to create a new myWidget named ".x" ( or named like any existing widget ),
then I (correctly) get an error message

myWidget .x
# OK --> window name "x" already exists in parent

BUT, hereafter, I am no more able to query for "myWidget info instances"

myWidget info instances
# WRONG! --> can't read "instance": no such variable

NOTES:
* no problem with snit::type
* no problem with snit::widgetadaptor

Discussion