| Ticket UUID: | 2910682 | |||
| Title: | yaml's dict package needs | |||
| Type: | Bug | Version: | None | |
| Submitter: | dgp | Created on: | 2009-12-08 13:39:10 | |
| Subsystem: | yaml | Assigned To: | kanryu6 | |
| Priority: | 5 Medium | Severity: | ||
| 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: |
Testing tcllib-1.12 with Tcl 8.4.19, I see:
[* ] [8.4.19] yaml Error in huddle.tcl: bad subcommand "with": must be append, create, ...
The [dict with] command is not part of Tcl 8.4, and
the [package require dict] is apparently getting a
version of the dict package not recent enough to
have the required subcommand. Adding a version
requirement should help guard against this.
Also, the stanza,
if {$::tcl_version < 8.5} {
package require dict
}
is buggy. Use [package vcompare]
instead of trying to treat version numbers
as if they were real decimal numbers.
| |||
| User Comments: |
serhiy.storchaka added on 2026-11-21 11:21:38:
The version check was fixed in [57bd19307c] (Tcllib 1.13), and since the huddle 0.2 rewrite [02ec11eeba] (Tcllib 1.18) huddle requires Tcl 8.5 and no longer loads the dict package. kanryu6 added on 2009-12-17 21:37:03: thank you. I modified about this. | |||
Home
Blog
Docs
Downloads
Tickets
Timeline
Branches
Tags
Wiki