Skip to content
Tcl Source Code History Of Ticket 3605447fffffffff
Login

History Of Ticket 3605447fffffffff

Artifacts Associated With Ticket 3605447fffffffff

  1. Ticket change [26ec7ff550] (rid 88430) by dgp on 2013-02-20 17:36:20:

    1. assignee initialized to: "msofer"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      % namespace export
      % namespace export x
      % namespace export
      x
      % namespace export -clear y
      % namespace export
      y
      % namespace export z
      % namespace export
      y z
      % namespace export -clear
      % namespace export
      y z
      
      The last round is the surprise.  The failure of the -clear option
      to do any clearing unless new patterns come in at the same time
      is not what I expected, and not the interpretation I would make of
      the documented behavior.  It sure appears that there's no way
      to return a namespace's export list to a list of no patterns.  The
      behavior of
      
      namespace export -clear $newExportPatternList
      
      is also fraught with complication of the Do Nothing Gracefully
      variety.
      
      If this isn't a bug, it ought to be.  Ick.
      
    4. foundin initialized to: "current: 8.6.0"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "dgp"
    10. subsystem initialized to: "21. [namespace]"
    11. title initialized to: "[namespace export -clear] surprise"
    12. type initialized to: "Bug"
  2. Ticket change [0e70591e55] (rid 94617) by dgp on 2013-02-21 00:41:15:

    1. icomment:
      That last example ought to be
      
      namespace export -clear {*}$newExportPatternList
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  3. Ticket change [75947b5f87] (rid 105414) by dgp on 2013-02-21 00:45:58:

    1. icomment:
      
      To some extent this is the badness of the Tcl_Export()
      interface leaking through.  Double Ick.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  4. Ticket change [7786f084af] (rid 89790) by dgp on 2013-02-21 00:56:10:

    1. icomment:
      Heh.  The way to get back to any empty export list
      is, apparently:
      
      % namespace export x
      % namespace export
      x
      % catch {namespace export -clear bad::data}
      1
      % namespace export
      % 
      
      Who wants to make the case this is a sensible
      intentional interface?  Bleah.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  5. Ticket change [38f5aeb46c] (rid 112306) by dgp on 2013-02-21 02:19:30:

    1. icomment:
      See bug-3605447 branch for something more sensible.
      Test suite does not care about the change.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. priority changed to: "8"
    5. username: "dgp"
  6. Ticket change [cab06a2aac] (rid 95401) by dkf on 2013-02-21 04:08:04:

    1. icomment:
      [catch {namespace export -clear bad::data}]??? That's... that's gotta change.
      
      If you're doing this, you might consider adding "--" support. (Yes, it makes it more of a change, with more risk, but it's likely to reduce the actual WTF content.)
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  7. Ticket change [2d91d7ba02] (rid 119087) by dgp on 2013-02-21 10:20:49:

    1. assignee changed to: "dgp"
    2. closedate changed to: "2013-02-21T03:20:49"
    3. closer changed to: "dgp"
    4. icomment:
      
      
      allow_comments - 1
      
      fix merged on all active branches
      
      
    5. login: "dgp"
    6. mimetype: "text/plain"
    7. resolution changed to: "Fixed"
    8. status changed to: "Closed"
    9. username: "dgp"