Skip to content
Tcl Source Code History Of Ticket 582926ffff
Login

History Of Ticket 582926ffff

Artifacts Associated With Ticket 582926ffff

  1. Ticket change [8ee65ac5db] (rid 120198) by dgp on 2002-07-17 16:48:21:

    1. assignee initialized to: "msofer"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      [upvar $level $otherVar $myVar] is supposed to be able to
      handle a non-existent $otherVar, and mostly it does. 
      But...
      
      % upvar 0 foo::bar soom
      can't access "foo::bar": parent namespace doesn't exist
      
      That seems counter to the spirit of [upvar] being able
      to link to non-existent variables.  Seems similar to
      other situations where one would think that namespaces
      would be created as needed.
      
    4. foundin initialized to: "obsolete: 8.4b2"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "dgp"
    9. subsystem initialized to: "07. Variables"
    10. title initialized to: "upvar barfs on non-existent target"
    11. type initialized to: "RFE"
  2. Ticket change [e1dd1bb309] (rid 87527) by msofer on 2002-07-18 20:44:06:

    1. closedate changed to: "2002-07-18T13:44:06"
    2. closer changed to: "msofer"
    3. icomment:
      Logged In: YES 
      user_id=148712
      
      This looks OK to me, it is perfectly consistent with
      
      % set foo::bar soom
      can't set "foo::bar": parent namespace doesn't exist
      
      If this is the desired behaviour is an entirely different
      matter ;)
      
      
    4. login: "msofer"
    5. mimetype: "text/plain"
    6. status changed to: "Pending"
    7. username: "msofer"
  3. Ticket change [031f4c47bb] (rid 119766) by dgp on 2002-07-18 21:38:25:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      Fair enough.  This is really an FR then.
      
      Is there already an FR filed asking 
      that namespaces get created as
      needed?
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. status changed to: "Open"
    5. username: "dgp"
  4. Ticket change [042ce49bfe] (rid 119951) by msofer on 2002-07-19 02:41:54:

    1. assignee changed to: "nobody"
    2. foundin changed to: "None"
    3. icomment:
      Logged In: YES 
      user_id=148712
      
      I couldn't find any.
      
      
    4. login: "msofer"
    5. mimetype: "text/plain"
    6. subsystem changed to: "None"
    7. username: "msofer"
  5. Ticket change [9d6f73a62c] (rid 96305) by dgp on 2002-07-19 03:07:56:

    1. assignee changed to: "msofer"
    2. icomment:
      Logged In: YES 
      user_id=80530
      
      
      more generally then, consider this
      a request that whenever a
      "namespace does not exist"
      error message is currently
      being returned, instead have the
      required namespace created
      automatically, just as variables
      are created as needed without
      any prior "declaration".
      
      
      
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. subsystem changed to: "21. [namespace]"
    6. title changed to: "create namespaces as needed"
    7. username: "dgp"
  6. Ticket change [1d5131053d] (rid 90782) by msofer on 2003-08-10 21:40:57:

    1. icomment:
      Logged In: YES 
      user_id=148712
      
      Another example reported by Michael Kirkham <muonics> in
      [Bug 786187]:
      
      % namespace children ::
      ::tcl
      % proc ns::test {} {}
      can't create procedure "ns::test": unknown namespace
      % proc test {} {}
      % rename test ns::test
      % namespace children ::
      ::ns ::tcl 
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  7. Ticket change [1daa311f95] (rid 90849) by msofer on 2003-08-10 21:43:44:

    1. icomment:
      Logged In: YES 
      user_id=148712
      
      The docs do not really talk about the issue. 
      However, this being very longstanding behaviour (since 8.0)
      I'm hesitant to fix it within a minor release. 
      Maybe it should be TIPped? For the record, my (non-voting)
      opinion on such a TIP would be YES.
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  8. Ticket change [fb881ce209] (rid 92080) by dgp on 2003-08-11 00:06:53:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      No doubt a TIP is needed; that's why
      it's a feature request.
      
      The only argument against it, I think,
      is that the error behavior currently
      implemented makes it easier to
      discover bugs created by typos
      in namespace names.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  9. Ticket change [73a9c200c8] (rid 105075) by jenglish on 2003-10-07 04:36:31:

    1. icomment:
      Logged In: YES 
      user_id=68433
      
      If $otherVar refers to a nonexistent namespace "foo", should
      "foo" be created as a subnamespace of the current namespace,
      or of the root?
      
      Either way, it could lead to more subtle problems like the
      "creative writing" dilemma.
      
      
    2. login: "jenglish"
    3. mimetype: "text/plain"
    4. username: "jenglish"
  10. Ticket change [06be450329] (rid 89265) by dgp on 2003-10-07 04:37:32:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      Note that this misfeature
      contributes to Tk Bug 793909.
      It is likely there are several
      similar bugs in Tk, and perhaps
      in other extensions originally
      written for Tcl 7 that assume
      that Tcl_SetVar() will always
      succeed in creating a variable,
      and Tcl_TraceVar() will always
      succeed in creating a variable
      trace.
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  11. Ticket change [2656cc25d9] (rid 88327) by msofer on 2006-09-30 00:45:07:

    1. priority changed to: "8"
  12. Ticket change [9d2a8357cd] (rid 96264) by dgp on 2006-11-23 03:22:55:

    1. assignee changed to: "dgp"
  13. Ticket change [81d239a48d] (rid 117115) by dgp on 2007-01-30 00:27:23:

    1. title changed to: "TIP 277: create namespaces as needed"