Tk Library Source Code

View Ticket
Login
Ticket UUID: 1161779
Title: destructor can't precede constructor
Type: Bug Version: None
Submitter: coldstore Created on: 2005-03-12 01:14:30
Subsystem: snit Assigned To: duquette
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2005-06-05 03:40:30
Resolution: Fixed Closed By: duquette
    Closed on: 2005-06-04 20:40:30
Description:
The following code:

package require snit

::snit::type Boom {
    destructor {
    }

    constructor {args} {
$self configurelist $args
    }
}

Causes:

extra characters after close-brace
    while executing
"error $result"
    (procedure "Comp.Define" line 12)
    invoked from within
"Comp.Define [Comp.Compile type $type $body]"
...

Because (I think) snit sees the destructor and decides
to create a default constructor (without a space, for
some reason.)
User Comments: duquette added on 2005-03-12 10:18:46:
Logged In: YES 
user_id=372859

How very odd.  I shall have to fix that.