Skip to content
Tcl Source Code History Of Ticket 2da1cb0c80
Login

History Of Ticket 2da1cb0c80

Artifacts Associated With Ticket 2da1cb0c80

  1. Ticket change [14369d61f0] (rid 162886) by dgp on 2018-05-08 13:57:08:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. 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?
      
    5. is_private initialized to: "0"
    6. login: "dgp"
    7. priority initialized to: "5 Medium"
    8. resolution initialized to: "None"
    9. severity initialized to: "Important"
    10. status initialized to: "Open"
    11. submitter initialized to: "dgp"
    12. subsystem initialized to: "35. TclOO Package"
    13. title initialized to: "[$obj varname] handling of linked variables"
    14. type initialized to: "Bug"
  2. Ticket change [f8cc3b40e1] (rid 162887) by dgp on 2018-05-08 13:58:22:

    1. assignee changed to: "dkf"
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. priority changed to: "7 High"
  3. Ticket change [24930d2163] (rid 177964) by dkf on 2019-12-20 15:56:36:

    1. 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.
      
    2. login: "dkf"
    3. mimetype: "text/html"
  4. Ticket change [4e119336ad] (rid 226530) by dkf on 2024-05-23 13:49:41:

    1. 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 &mdash; in its header comment &mdash; to work with the results of `Tcl_FindNamespaceVar()`, but even so...)
      
    2. login: "dkf"
    3. mimetype: "text/x-markdown"
  5. Ticket change [2e8cecc7c1] (rid 229828) by dkf on 2024-08-06 21:02:49:

    1. closedate changed to: "2460529.37695904"
    2. closer changed to: "dkf"
    3. icomment:
      Fixed in 9.0, and not much prospect of backporting; it needs the new `TclVarParentArray()` macro (and supporting structure fields).
      
    4. login: "dkf"
    5. mimetype: "text/x-markdown"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
  6. Ticket change [2504b5aa36] (rid 229848) by dkf on 2024-08-07 14:44:52:

    1. closedate changed to: "2460530.11449091"
    2. 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.
      
    3. login: "dkf"
    4. mimetype: "text/plain"