Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 4d7b3b5eff9f9a744d8121c16e834f82524ca86817fd6fc293846ce88bb6d5ea
Ticket: d8ae5d5f4c1e248b715b2a2d90ed746dbfb5f2ed
Documentation of dict filter script: script results, not returns a boolean
User & Date: bll on 2020-11-03 20:06:46
Changes

  1. icomment:
    The 'return 1' is returning from the current scope.
    If you used:
      proc z { } {return 1}
      dict filter {a 1 b 2} script {k v} z
    it would work.
    
    The inline-script is not processed in the same manner as normal scripts,
    and I suspect is not creating a new scope.
    
    There are several commands that use these inline-scripts.  I don't like them.
    It's like having a secondary language within Tcl.
    
    Not that the documentation about break and continue only apply to the
    inline-script, not to any script called by the inline-script.
    
  2. login: "bll"
  3. mimetype: "text/plain"