Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 197e73e7e8dde0a36b727f19bd7fa2364dc74fb5
Ticket: 3553586fffffffffffffffffffffffffffffffff
Wrong argument to return command doesnt return error
User & Date: ferrieux on 2012-08-02 21:12:27
Changes

  1. icomment:
    The generated bytecode for "return a b" is interesting:
    
    % proc f {} {return a b}
    % ::tcl::unsupported::disassemble proc f
    ByteCode 0x0x83a0d28, refCt 1, epoch 5, interp 0x0x834a770 (epoch 5)
      Source "return a b"
      Cmds 1, src 10, inst 14, litObjs 2, aux 0, stkDepth 2, code/src 0.00
      Proc 0x0x83ba258, refCt 1, args 0, compiled locals 0
      Commands 1:
          1: pc 0-12, src 0-9
      Command 1: "return a b"
        (0) push1 0         # ""
        (2) push1 1         # "a b"
        (4) returnImm +0 1 
        (13) done 
    
    
    
  2. login: "ferrieux"
  3. mimetype: "text/plain"
  4. username: "ferrieux"