Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 2b79b56f8e34f6eb2c4eead2f442c935a8409eaf
Ticket: 2431338fffffffffffffffffffffffffffffffff
TIP 338 changes break TkAqua build
User & Date: dgp on 2008-12-16 02:36:43
Changes

  1. icomment:
    
    The motivation to not put the routines
    in public stubs was:
    
    1) Not doing so reduced the need to
       get thread safety right.
    2) No doing so offered a chance to
       discover non-embedders making calls,
       and either correct that, or learn
       about unmet interface needs.
    
    As it turns out, I took care of 1) anyway.
    The routines are thread safe, so there's
    not technical reason they can't be put into
    public stubs anymore.  Now it's more a matter
    of intent.  We intend for embedders to use
    these routines.  Public stubs makes them
    available to extenders, who we think can
    only be disappointed with them.
    
    Looking briefly at the troubles suffered
    by Aqua Tk, it appears they come from putting
    some code into Tk that ought to be in
    wish.  In particular, the [console] machinery
    is part of wish, not part of Tk, so I would
    expect code that examines whether or not
    to enable it would also be part of wish.
    
    The other usage I see is to pull startup
    script selection out of a "CFBundle" along
    with a platform-specific call to a private
    routine within Tk_MainEx() to make that possible.
    I think with the new public facility, the way
    to accomplish the same thing is to have the
    caller of Tk_Main() make that same private
    call before calling Tk_Main(), and link
    that code to libtcl instead of libtclstub.
    So, it also has the same "put it in wish, not Tk"
    flavor of solution.
    
    If that's off the track, as I say, the tech
    hurdles to exposing the routines in public
    stubs are gone, so we can go that way too
    if either required, or deemed a more desirable
    path in terms of disruption.
    
    
    
  2. login: "dgp"
  3. mimetype: "text/plain"
  4. username: "dgp"