| 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: | Closed | Last Modified: | 2026-11-21 11:21:38 | |
| Resolution: | Out of Date | Closed By: | serhiy.storchaka | |
| Closed on: | 2026-11-21 11:21:37 | |||
| 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: |
serhiy.storchaka added on 2026-11-21 11:21:38:
Tcllib and snit require Tcl 8.5; the Tcl 8.3 code of snit was removed in [758418619e] (Tcllib 2.0). anonymous (claiming to be [email protected]) added on 2016-10-03 15:30:25: EDIT: tcl version | |||
Home
Blog
Docs
Downloads
Tickets
Timeline
Branches
Tags
Wiki