Artifacts Associated With Ticket 601285ffffffffffffffffffffffffffffffffff
Ticket change [5a56f6b799] (rid 118126) by drh on 2002-08-28 13:14:07:
- assignee initialized to: "dgp"
- cmimetype initialized to: "text/plain"
- 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().
- foundin initialized to: "obsolete: 8.4b3"
- priority initialized to: "8"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "drh"
- subsystem initialized to: "50. Embedding Support"
- title initialized to: "C API backwards compatibility broken"
- type initialized to: "Bug"
Ticket change [cf465bd3e8] (rid 112947) by dgp on 2002-08-28 20:32:32:
- 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?
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [6b1fd195ec] (rid 128265) by drh on 2002-08-28 20:54:37:
- 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.
- login: "drh"
- mimetype: "text/plain"
- username: "drh"
- icomment:
Ticket change [d8398ad687] (rid 107401) by dgp on 2002-08-28 21:38:11:
- 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?
- login: "dgp"
- mimetype: "text/plain"
- title changed to: "make USE_COMPAT_CONST the default"
- username: "dgp"
- icomment:
Ticket change [6168f5e8ee] (rid 92236) by drh on 2002-08-28 22:32:56:
- 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...
- login: "drh"
- mimetype: "text/plain"
- username: "drh"
- icomment:
Ticket change [b1c92e35eb] (rid 98216) by dgp on 2002-09-09 23:31:11:
- closedate changed to: "2002-09-09T16:31:11"
- closer changed to: "dgp"
- icomment:
Logged In: YES user_id=80530 Closing this as resolved by mailing list discussion.
- login: "dgp"
- mimetype: "text/plain"
- status changed to: "Closed"
- username: "dgp"