Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 58c3cd0cf09e212dd2ee3a6eb1a02c9c0ac59644
Ticket: 533364ffffffffffffffffffffffffffffffffff
Tcl_Obj refcounts in TclGetIntForIndex
User & Date: msofer on 2002-03-22 19:59:10
Changes

  1. icomment:
    
    
    File Added - 19827: 533364.patch0
    
    Logged In: YES 
    user_id=148712
    
    The enclosed one-line patch0 solves this (and every other)
    such issue: insure that the bc engine clears the result
    *before every instruction*. 
    The problem is that some library calls from the engine may
    leave a result, so that it is not enough to clear the result
    before running a bytecode. One alternative would be to have
    the compiler generate a "clear result" before every bcc'ed
    command. 
    
    Both of these look unnecessarily expensive to me. I'd like
    to think a little more before commiting to this solution
    path.
    
    
  2. login: "msofer"
  3. mimetype: "text/plain"
  4. username: "msofer"