Artifacts Associated With Ticket 0e4b7fce57ddc428
Ticket change [b76c95893e] (rid 228608) by sbron on 2024-07-14 13:20:29:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-markdown"
- comment initialized to:
Running `info vars` in a fresh namespace in Tcl 9 reports the same list of variables that Tcl 8.6 does; the existing global variables. However, since [TIP #278](https://core.tcl-lang.org/tips/doc/trunk/tip/278.md) was implemented, global variables are no longer directly visible from within a namespace. They can only be accessed using their fully qualified names. It is therefor unexpected that `info vars` still reports them, especially by their simple name. I also don't think the globals should be reported by `info vars` using their fully qualified name, because all variables can be accessed using their fully qualified names. Then, if globals are included that way, then all variables in all namespaces should be included. That would quickly become a mess.
- foundin initialized to: "9.0b2"
- is_private initialized to: "0"
- login: "sbron"
- priority initialized to: "5 Medium"
- private_contact initialized to: "8475f421649231f1e116ac602bea4537d2b027b4"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "sbron"
- subsystem initialized to: "07. Variables"
- title initialized to:
Running [info vars] in a namespace returns global variables
- type initialized to: "Bug"
Ticket change [3c25d7812c] (rid 228614) by sbron on 2024-07-14 14:00:37:
- icomment:
First attempt at a fix in the [bug-0e4b7fce57](https://core.tcl-lang.org/tcl/timeline?r=bug-0e4b7fce57) branch. This change caused no test failures, so it seems that this functionality could also use better testing.
- login: "sbron"
- mimetype: "text/x-markdown"
- icomment:
Ticket change [28d8129a25] (rid 228636) by sebres on 2024-07-14 19:34:54:
- closedate changed to: "2460506.31590376"
- closer changed to: "sebres"
- icomment:
Fixed in [5d2e5c3e82] (with small amend and better test coverage), thus closing the ticket now as fixed.
- login: "sebres"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Closed"