Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f2b22eb907880a406faa55688dfbe8f50eafd8a2
Ticket: dfc08326e3ffc570f5d0af51372f6c6043ad03a9
Symbols not exported correctly
User & Date: jan.nijtmans on 2013-09-30 08:51:47
Changes

  1. closer changed to: "nobody"
  2. icomment:
    I am failing to see the improvement of this change. I tested it, and it doesn't cause any immediate problems either. As stwo commented, problably the only thing missing in his setup was the Tcl_OOInitStubs() call.
    
    The only disadvantage of this commit is that it would prevent creating a stub-enabled TclOO extension (e.g. Itcl) compiled against 8.5 headers,
    which statically links to tclOO (with a runtime-check for Tcl8.6). If the
    TclOO symbols are exported that would cause duplicate symbols, with stock
    Tcl 8.6.0 or 8.6.1 that wouldn't be problem. Since compiling Itcl
    with TclOO gives warnings (TclOONewProcInstanceMethodEx
    and TclOONewProcMethodEx have a different signature) and Itcl 4.0 with
    8.5 appears not to be supported anyway, it really is no problem.
    
    Since Tcl 9.0 uses the TCL<PACKAGENAME>API convention everywhere, I would
    be very interested to know what's the problem with that approach. So far
    I am not aware of any problem, that's why I backported that from Tcl 9
    to 8.6 for TclOO only. Reverting that change would be a pity.
    
    >This is not a supported configuration with the external package form
    >of TclOO, but should be supported with Tcl 8.6 onwards; I intend
    >to change this ASAP. 
    I don't see any added value in supporting this: whether Tcl and/or TclOO
    are compiled as static or dynamic library is orthogonal to whether it's
    symbols are exported through the Stub table or as symbols or both
    from it's dynamic library. Calling Tcl_OOInitStubs() is the solution
    to any problem, as far as I know.
    
    I would recommend to revert this change, unless someone can point
    out a problem with the original appoach. Since tkImg and Tcl 9.0
    use the TCL<PACKAGENAME>API approach as well, I'm very interested in
    any possible problems that might cause.
    
  3. login: "jan.nijtmans"
  4. mimetype: "text/plain"
  5. status changed to: "Pending"