Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

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

  1. icomment:
    I agree with your intuitions. However, I wonder whether there was a change between 8.5 and 8.6 in this area: both tips from 8.5 and 8.6 branches yield:
    
    % set x {1 2 3}
    1 2 3
    % dict get $x 1
    missing value to go with key
    
    Clearly, as you suggest, something like "value is not a dict" would seem better.
    Definitely for novem; unsure about 8.x. Donal ?
    
    
  2. login: "ferrieux"
  3. mimetype: "text/plain"
  4. username: "ferrieux"