Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 840f082ab6a5cd6b0263ba0822c75baa75c5bd9e
Ticket: 1711975fffffffffffffffffffffffffffffffff
Tcl_MainEx() (like Tk_MainEx())
User & Date: nijtmans on 2010-07-02 15:52:03
Changes

  1. icomment:
    Thinking more about it, I was wrong in stating
    that Tcl_MainEx should be in the stub table, just
    like Tk_MainEx. There are 4 functions in Tk which
    are only meant to be called from tkAppInit.c,
    never from stub-enabled extensions. Those are:
    Tk_MainEx, Tk_Init, Tk_SafeInit and
    Tk_CreateConsoleWindow. If they are
    used in a stub-enabled extension, the
    author surely misunderstands those
    function. So, it would be better
    to remove those 4 from the stub
    table, or - at least disable them -
    so extension authors cannot make
    this mistake.
    
    For Tcl, the same holds for Tcl_Main
    and Tcl_FindExecutable, the latter
    should never have been put in the
    stub table!
    
    This means, that it makes your idea
    of making Tcl_MainEx and Tk_MainEx
    function the same less usefull. For Tk,
    Tk_Main is a macro, should Tcl_Main
    made a macro as well? You want
    to extend interp before the mainloop
    starts, but the appinitproc is already
    called before the main loop starts.
    So, what's the added value? I'm
    not sure any more.
    
    
  2. login: "nijtmans"
  3. mimetype: "text/plain"
  4. username: "nijtmans"