Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: c5fdbbdaf7895433d9ae5740e98a30184ce501e0
Ticket: 2414858fffffffffffffffffffffffffffffffff
tailcall from constructor doesn't quite work.
User & Date: msofer on 2009-03-22 06:46:35
Changes

  1. icomment:
    The solution might just be: let the constructor code run as a command through TEOV, or else (hacky) manually add a 
       Tcl_NRAddCallback(NRCommand,NULL, ...);
       iPtr->numLevels++;
    at the spot where the tailcalls should run (ie, after pushing the post-constructor callbacks, before pushing the actual constructor callbacks). NRCommand serves as the marker for the tailcall spot.
    
    This might make the tailcalls run properly - if there is an effect of numLevels on tip 280 things, I don't know 
    
    
  2. login: "msofer"
  3. mimetype: "text/plain"
  4. username: "msofer"