Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 555c548d33c5d95c5716506a06aff09c42836bd1
Ticket: 1711975fffffffffffffffffffffffffffffffff
Tcl_MainEx() (like Tk_MainEx())
User & Date: fridolin on 2010-07-05 14:47:08
Changes

  1. icomment:
    Hm. I have a binding to OCaml. I created very early an interp and modify it
    on serveral places. It's convenient to do it. I set some variables, I define my own procedures and set a startup script. I spread out this code in several independend modules. Later Tcl_MainEx() is called and everything works as expected.
    
    With the appinitproc approach, I would have to record my modifications
    and apply it in the appinitproc. Unfortunatly this is a C-procedure and
    it have to call OCaml again. It will work, but it is more work. More badly with
    the appinitproc approach I have to distinguish, whether  my call is before of after the main-Loop. Currently I always manipulate a global interp, but without the patch I have to store my modifications for later execution.
    
    BTW, my change is so tiny, it doesn't affect performance or causes code  bloat and I tested it for years now.
    
    Furthermore, I do use the stub table. (But to do it, I load the funtion Tcl_CreateInterp() with dlopen+dlsym.  Or can I call Tcl_InitStubs with interp == NULL? I have to check the documention...)
    
    
    
    
  2. login: "fridolin"
  3. mimetype: "text/plain"
  4. username: "fridolin"