Tcl Library Source Code

View Ticket
Login
Ticket UUID: faf551c778a357fe2e45899f23da6e014b73694e
Title: snit doesn't work in Tcl 8.3
Type: Bug Version: tcllib 1.18
Submitter: anonymous Created on: 2016-10-03 15:21:42
Subsystem: snit Assigned To:
Priority: 5 Medium Severity: Minor
Status: Open Last Modified: 2016-10-03 15:30:25
Resolution: None Closed By: nobody
    Closed on:
Description:
Running "package require snit" in Tcl 8.3 gives

can't use non-numeric string as operand of "!"
    while executing
"if {!$compile(-hastypemethods) && !$compile(-hasinstances)} {
        error "$which $type has neither typemethods nor instances"
    }"
    (procedure "Comp.Compile" line 77)
    invoked from within
"Comp.Compile type $type $body"
    (procedure "snit::type" line 2)
    invoked from within
...

That's because "yes", "no" etc are not recognized as boolean values in old Tcl versions. Please return back to 0/1 (as it was in first snit versions) to stay compatible.
User Comments: anonymous (claiming to be [email protected]) added on 2016-10-03 15:30:25:
EDIT: tcl version