Tk Library Source Code

View Ticket
Login
Ticket UUID: 2113728
Title: "$type info instances" corrupted after object-creation error
Type: Bug Version: None
Submitter: aldobu Created on: 2008-09-16 08:30:31
Subsystem: snit Assigned To: duquette
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2013-07-04 17:25:42
Resolution: Not Applicable Here Closed By:
    Closed on:
Description:
= 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