Skip to content
Tcl Source Code History Of Ticket 475397ffffffffff
Login

History Of Ticket 475397ffffffffff

Artifacts Associated With Ticket 475397ffffffffff

  1. Ticket change [59dc3422b0] (rid 118038) by dgp on 2001-10-26 18:36:11:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      $ tclsh
      % switch a a {} c
      % switch a [list a {} c]
      
      Both examples are illegal
      calls of [switch] because
      they include a pattern
      without a body, but neither
      raises an error.
      
      An error should be raised in
      each case.
      
    4. foundin initialized to: "obsolete: 8.4a4"
    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: "18. Commands M-Z"
    10. title initialized to: "[switch] accepts illegal arguments"
    11. type initialized to: "Bug"
  2. Ticket change [05d5ce5b5e] (rid 89121) by dgp on 2001-10-27 03:51:46:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      Note also
      
      switch a {a {} default -}
      vs
      switch b {a {} default -}
      
      
      and
      
      switch a {a {} b -}
      vs.
      switch b {a {} b -}
      
      The common thread is that errors aren't caught
      until an attempt to evaluate them is made.
      
      Finally, note the inconsistency of
      
      switch a
      and
      switch a {}
      
      The man page for switch say both should
      raise an error.  I'd be happier if both
      were successful no-ops.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  3. Ticket change [5114cb115a] (rid 126079) by dkf on 2001-11-27 20:33:54:

    1. closedate changed to: "2001-11-27T13:33:54"
    2. closer changed to: "dkf"
    3. icomment:
      Logged In: YES 
      user_id=79902
      
      I've fixed all these and made the behaviour consistent
      between when the arms are done as separate arguments and
      when they are a list, though I've tightened up in favour of
      making [switch a {}] produce an error as that is consistent
      with the documentation.
      
      
    4. login: "dkf"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "dkf"