Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f1b3afe5d7531a4aa2ad174da339e9c3b0aef90ab0002afac8cab3d00bf14aeb
Ticket: 586e71dce4f9513b688f00a71b9ea0d039ca1a88
command returned bad code: 0 if returns from "dict filter"
User & Date: dgp on 2017-12-19 17:22:27
Changes

  1. assignee changed to: "dkf"
  2. icomment:
    
    This problem arrived with the introduction of the
    INST_INVOKE_REPLACE instruction, and appears to indicate a flaw in it.
    
    https://core.tcl.tk/tcl/info/0a095f089c8ce09a
    
    % dict filter {a b} script {k v} {return $k,$v}
    command returned bad code: 0
    % tcl::unsupported::disassemble script {dict filter {a b} script {k v} {return $k,$v}}
    ByteCode 0x0x22e7ad0, refCt 1, epoch 15, interp 0x0x228ee80 (epoch 15)
      Source "dict filter {a b} script {k v} {return $k,$v}"
      Cmds 1, src 45, inst 21, litObjs 7, aux 0, stkDepth 7, code/src 0.00
      Commands 1:
          1: pc 0-19, src 0-44
      Command 1: "dict filter {a b} script {k v} {return $k,$v}"
        (0) push1 0         # "dict"
        (2) push1 1         # "filter"
        (4) push1 2         # "a b"
        (6) push1 3         # "script"
        (8) push1 4         # "k v"
        (10) push1 5        # "return $k,$v"
        (12) push1 6        # "::tcl::dict::filter"
        (14) invokeReplace 6 2 
        (20) done 
    
    % tcl::dict::filter {a b} script {k v} {return $k,$v}
    a,b
    
  3. login: "dgp"
  4. mimetype: "text/plain"
  5. severity changed to: "Important"