Artifacts Associated With Ticket 2da1cb0c80
Ticket change [14369d61f0] (rid 162886) by dgp on 2018-05-08 13:57:08:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
% set o [oo::object new] ::oo::Obj11 % oo::objdefine $o export eval varname % $o eval {namespace upvar :: nosuch test} % $o varname test ::nosuch Why not '::oo::Obj11::test' ? % $o eval {namespace upvar :: tcl_platform(platform) foo} % $o varname foo % Why not '::tcl_platform(platform)' ? Or why not '::oo::Obj11::foo' ? Is this behavior sensible? What should sensible behavior be and why? - is_private initialized to: "0"
- login: "dgp"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- severity initialized to: "Important"
- status initialized to: "Open"
- submitter initialized to: "dgp"
- subsystem initialized to: "35. TclOO Package"
- title initialized to: "[$obj varname] handling of linked variables"
- type initialized to: "Bug"
Ticket change [f8cc3b40e1] (rid 162887) by dgp on 2018-05-08 13:58:22:
- assignee changed to: "dkf"
- login: "dgp"
- mimetype: "text/plain"
- priority changed to: "7 High"
Ticket change [24930d2163] (rid 177964) by dkf on 2019-12-20 15:56:36:
- icomment:
The first case works well enough (it is returning a handle to the correct variable) even if it is unexpected (due to following the rabbit hole of variable links). <p> The second case is a definite bug.
- login: "dkf"
- mimetype: "text/html"
- icomment:
Ticket change [4e119336ad] (rid 226530) by dkf on 2024-05-23 13:49:41:
- icomment:
The behaviour in the second case is due to: ```c if (!varPtr || TclIsVarArrayElement(varPtr)) { return; } ``` in `Tcl_GetVariableFullName()` in `tclVar.c`. That is unexpected to me! (The function is only documented — in its header comment — to work with the results of `Tcl_FindNamespaceVar()`, but even so...) - login: "dkf"
- mimetype: "text/x-markdown"
- icomment:
Ticket change [2e8cecc7c1] (rid 229828) by dkf on 2024-08-06 21:02:49:
- closedate changed to: "2460529.37695904"
- closer changed to: "dkf"
- icomment:
Fixed in 9.0, and not much prospect of backporting; it needs the new `TclVarParentArray()` macro (and supporting structure fields).
- login: "dkf"
- mimetype: "text/x-markdown"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [2504b5aa36] (rid 229848) by dkf on 2024-08-07 14:44:52:
- closedate changed to: "2460530.11449091"
- icomment:
I've added a hack for 8.6 and 8.7 that returns the name of the variable within the object when it has no better option.
- login: "dkf"
- mimetype: "text/plain"