Skip to content
Tcl Source Code History Of Ticket 601285ffffffffff
Login

History Of Ticket 601285ffffffffff

Artifacts Associated With Ticket 601285ffffffffff

  1. Ticket change [5a56f6b799] (rid 118126) by drh on 2002-08-28 13:14:07:

    1. assignee initialized to: "dgp"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      The 2002-08-04 patch to TCL has broken backwards
      compatibility of the C/C++ API.  Legacy code will
      no longer compile without (sometimes major) changes.
      This may be appropriate for Tcl 9.0, but for
      Tcl 8.4 I think we should preserve backwards
      compatibility.
      
      I recommend turning on the USE_COMPAT_CONST mode
      by default in the 8.x series and having a 
      different #define that can enable the new
      CONST-ifying where desired. When 9.x comes out,
      then we can go to having incompatible CONST
      definitions in the API.
      
      The specific problem I am having is with the
      Tcl_CreateCommand() interface, which now requires
      a "const char**" on the Tcl_CmdProc instead of a
      "char**".
      
      Furthermore, just doing:
      
         #define USE_COMPAT_CONST 1
         #include <tcl.h>
      
      does not solve the problem, since after doing so
      I am getting complaints about trying to pass a
      "const char**" in as the 3 argument to
      Tcl_GetIndexFromObj().
      
    4. foundin initialized to: "obsolete: 8.4b3"
    5. priority initialized to: "8"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "drh"
    9. subsystem initialized to: "50. Embedding Support"
    10. title initialized to: "C API backwards compatibility broken"
    11. type initialized to: "Bug"
  2. Ticket change [cf465bd3e8] (rid 112947) by dgp on 2002-08-28 20:32:32:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      I believe the availabilty of USE_NON_CONST offers
      complete support for full backward source
      compatibility.  This was done to fix Bug 580433.
      
      See also http://mini.net/tcl/3669
      
      In the terminology of that Wiki page, both the
      Tcl_CmdProc change and the Tcl_GetIndexFromObj
      change are of "Type III", so both should be disabled
      by a #define of USE_COMPAT_CONST.
      
      Is the troublesome code available for examination, or
      can you supply a demonstration of the trouble you
      are seeing?
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  3. Ticket change [6b1fd195ec] (rid 128265) by drh on 2002-08-28 20:54:37:

    1. icomment:
      Logged In: YES 
      user_id=69293
      
      My point is that there should not be ANY changes
      required to legacy code in order to link against
      Tcl8.4.  Even simple changes like defining
      USE_COMPAT_CONST before including tcl.h.  Otherwise
      you break backwards compatibility, and traditionally
      that requires a change to the major version number.
      
      
    2. login: "drh"
    3. mimetype: "text/plain"
    4. username: "drh"
  4. Ticket change [d8398ad687] (rid 107401) by dgp on 2002-08-28 21:38:11:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      Tcl/Tk has a history of exactly this kind of source
      incompatibility at a minor release, with exactly
      this sort of #define support for old source code.  See
      
      USE_OLD_IMAGE
      USE_OLD_TAG_SEARCH
      USE_OLD_CANVAS
      USE_COMPOSITELESS_PHOTO_PUT_BLOCK
      
      USE_NON_CONST fits right in.
      
      That said, let's boil this down to the actual
      feature request.  The HEAD tcl.h currently
      offers three options:
      
      USE_NON_CONST: disable Types II and III
      USE_COMPAT_CONST: disable Type III only
      <no #define>: fully CONSTified interface
      
      The 8.4 default is the fully CONSTified option,
      and your request is that the default should be
      the current USE_COMPAT_CONST option
      instead?
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. title changed to: "make USE_COMPAT_CONST the default"
    5. username: "dgp"
  5. Ticket change [6168f5e8ee] (rid 92236) by drh on 2002-08-28 22:32:56:

    1. icomment:
      Logged In: YES 
      user_id=69293
      
      I think this is an important issue that needs to
      be discussed (and perhaps voted on) by the whole
      team. I'll make a posting to the mailing list...
      
      
    2. login: "drh"
    3. mimetype: "text/plain"
    4. username: "drh"
  6. Ticket change [b1c92e35eb] (rid 98216) by dgp on 2002-09-09 23:31:11:

    1. closedate changed to: "2002-09-09T16:31:11"
    2. closer changed to: "dgp"
    3. icomment:
      Logged In: YES 
      user_id=80530
      
      Closing this as resolved by mailing list discussion.
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. status changed to: "Closed"
    7. username: "dgp"