Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: a7aced6021530a82772bb431b7fa44cfb3e3b574
Ticket: 3588687fffffffffffffffffffffffffffffffff
Tcl_InitStubs() Broken As Designed
User & Date: dgp on 2012-11-29 22:30:51
Changes

  1. icomment:
    
    Update committed to branch.  Now I have TclInitStubs()
    checking both TCL_MAJOR_VERSION and TCL_STUB_MAGIC
    agreement between extension and stubs library.
    
    I had been thinking about TCL_STUB_MAGIC as a value that flagged
    incompatible stubs mechanisms over time as new Tcl major versions
    would arrive.  In that line of thought, it seems to duplicate what's already
    known from TCL_MAJOR_VERSION.  However, the TCL_STUB_MAGIC
    value is also good for flagging incompatibilities that are not temporal
    in nature.  In particular, should any forks arise in Tcl development that get
    reflected in incompatible stub tables, we'll want this value to make those
    distinctions.  Such forks might well be temporary as we undertake various
    radical experiments in separate fossil branches, that only get resolved
    when merged.  Another possibility that comes to mind is the ability to
    flag our known problems with needing a TCL_MEM_DEBUG interp to
    successfully [load] a TCL_MEM_DEBUG extension.
    
    
  2. login: "dgp"
  3. mimetype: "text/plain"
  4. username: "dgp"