Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 823f434d5a0da6f706d54bc922cca85d80ff4b9ed6f0439ff79254e334da9272
Ticket: d22ad202055093292992c6aea053188f8b3d4abe
"dict unset d key subkey" fails if key does not exist
User & Date: sebres on 2018-07-02 11:03:13
Changes

  1. icomment:
    Still worse (as regards the inconsistency), it does not produce any error if dictionary self (variable) does not exists:
    
    <code><verbatim>
    % unset -nocomplain d
    % catch { dict unset d a }
    0
    </verbatim></code>
    
    So I'm agree with Harald's conclusion, the `dict unset` must not produce an error if sub-key does not exists also.
    
  2. login: "sebres"
  3. mimetype: "text/x-fossil-wiki"