Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 05d5ce5b5e6223f9d24d2d45cb5b104429fb7e17
Ticket: 475397ffffffffffffffffffffffffffffffffff
[switch] accepts illegal arguments
User & Date: dgp on 2001-10-27 03:51:46
Changes

  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"