Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 41ef19a3659b5823f9521f5e1d69fb5f8ccfe91d
Ticket: 3598385fffffffffffffffffffffffffffffffff
[dict exists] doesn't produce an error for non-dict values
User & Date: ferrieux on 2012-12-25 07:58:21
Changes

  1. icomment:
    Hmm, I suddenly realize the meaning of this error message "missing value to go with key": it does not refer to the key arg passed to [dict get], but to the odd list element... So it is just a cryptic form of "value is not a dict" ;)
    
    So, back to your suggestion, I agree that letting [dict exists] ignore the ill-formedness of the dict is just plain wrong.
    I'd vote for a fix with a marked POTENTIAL INCOMPATIBILITY as soon as 8.0.1.
    But that's Donal's realm, let him decide.
    
    
  2. login: "ferrieux"
  3. mimetype: "text/plain"
  4. username: "ferrieux"