Overview
| Artifact ID: | e9e4952dc952c970e20cdb50715299a6f85b25b9 |
|---|---|
| Ticket: | 580433ffffffffffffffffffffffffffffffffff
CONST prototypes in 8.4. |
| User & Date: | dgp on 2002-07-13 02:15:42 |
Changes
- icomment:
Logged In: YES user_id=80530 That's just not what USE_NON_CONST / CONST84 is for. CONST84 exists to disable only those new CONSTs that would otherwise force extensions to drop (compiling) support for pre-8.4 Tcl, because compilers do not know how to convert a (char **) to a (const char **). USE_NON_CONST allows for support for both 8.3 and 8.4 headers until a package naturally wants to require 8.4 because it is using 8.4 features. Tcl routines that now return (CONST char *) where they previously returned (char *) do not need such a mechanism, because compilers do know how to convert (char *) values into (const char *) values. This means that extensions can update their code to compile with both 8.3 and 8.4 headers, and that's what they're expected to do to begin supporting Tcl 8.4. Tcl 8.4 does not offer a "#define and go" migration option for dealing with the CONST-ification changes. At a minimum, extensions must deal with the source incompatibility approved by TIP 27. It's possible that such a "#define and go" option could be provided, but it would need to be something new, not a dual meaning imposed on CONST84. I'd rather not go that way, but it is possible.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"