Skip to content

Use fully qualified ::sta::float_inf - Tcl9 lookup changed.#424

Closed
hzeller wants to merge 1 commit into
parallaxsw:masterfrom
hzeller:feature-20260414-tcl9-global-lookup
Closed

Use fully qualified ::sta::float_inf - Tcl9 lookup changed.#424
hzeller wants to merge 1 commit into
parallaxsw:masterfrom
hzeller:feature-20260414-tcl9-global-lookup

Conversation

@hzeller
Copy link
Copy Markdown
Contributor

@hzeller hzeller commented Apr 14, 2026

To get the value of a global variable, it seems in Tcl9, this requires to fully qualify it with leading ::.

While at it, make float_inf readonly, as it certainly is not meant to be modified.

Thanks to @mikesinouye for spotting the problem.

Fixes: #422

To get the value of a global variable, it seems in Tcl9, this
requires to fully qualify it with leading `::`.

While at it, make `float_inf` readonly, as it certainly is
not meant to be modified.

Thanks to @mikesinouye for spotting the problem.

Fixes: parallaxsw#422

Signed-off-by: Henner Zeller <h.zeller@acm.org>
@hzeller
Copy link
Copy Markdown
Contributor Author

hzeller commented Apr 14, 2026

With that, the example from #422 works with both, tcl-8 and tcl-9

$ cat ~/foo.tcl | build-8/sta -no_splash
Tcl patchlevel = 8.5.19
sta::float_inf = 1.0000000150474662e+30
Error: 1571 No network has been linked.
$ cat ~/foo.tcl | build-9/sta -no_splash
Tcl patchlevel = 9.0.3
sta::float_inf = 1.0000000150474662e+30
Error: 1571 No network has been linked.

@jjcherry56
Copy link
Copy Markdown
Collaborator

I added variable commands to import the variables instead

@jjcherry56 jjcherry56 closed this Apr 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tcl 9: can't see sta::float_inf inside report_check_types

2 participants