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

History Of Ticket 580433ffffffffff

Artifacts Associated With Ticket 580433ffffffffff

  1. Ticket change [9e1905d54e] (rid 96418) by ghowlett on 2002-07-12 05:55:35:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      There are several prototypes that formerly in 8.3 returned 
      char * values.  One example is Tcl_SetVar2.  
      
      They now return CONST char * values.   This should be 
      CONST84 char * so that extension writers can define
      USE_NON_CONST.  
      
      --gah
      
    4. foundin initialized to: "None"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "ghowlett"
    9. subsystem initialized to: "None"
    10. title initialized to: "CONST prototypes in 8.4."
    11. type initialized to: "Bug"
  2. Ticket change [6c00050ddb] (rid 128425) by hobbs on 2002-07-13 00:08:31:

    1. assignee changed to: "dgp"
  3. Ticket change [c1572f2584] (rid 111306) by dgp on 2002-07-13 01:18:21:

    1. closedate changed to: "2002-07-12T18:18:21"
    2. closer changed to: "dgp"
    3. icomment:
      Logged In: YES 
      user_id=80530
      
      
      The CONST84 macro is tied only to those
      changes that cannot be reconciled.  The
      return of a CONST char * where a char *
      was returned before can be reconciled by
      adding "const" in the caller, so that the
      modified code compiles with both 8.3
      and 8.4 headers.
      
      This type of source incompatibility
      was approved in TIP 27.
      
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. resolution changed to: "Invalid"
    7. status changed to: "Pending"
    8. username: "dgp"
  4. Ticket change [4c398f7f50] (rid 126845) by ghowlett on 2002-07-13 01:30:44:

    1. icomment:
      Logged In: YES 
      user_id=137748
      
      Adding const in the caller's code cacades changes
      throughout. Either one
      wants to use const everywhere or they don't.  There's no
      middle ground.
      
      This is a nuisance for everyone trying to port old code to
      8.4.  What's
      the issue for not using CONST84 instead?  
      
      --gah
      
      
      
    2. login: "ghowlett"
    3. mimetype: "text/plain"
    4. status changed to: "Open"
    5. username: "ghowlett"
  5. Ticket change [e9e4952dc9] (rid 104883) by dgp on 2002-07-13 02:15:42:

    1. 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.
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  6. Ticket change [81128bd7d9] (rid 116976) by ghowlett on 2002-07-13 02:30:22:

    1. icomment:
      Logged In: YES 
      user_id=137748
      
      Unfortunately it's counterproductive. 
      It causes extensions to drop support of 8.4 (or more 
      accurately, people won't take the time to make them
      compile with 8.4).  It's too bad that source code 
      compatibility isn't as valued as binary compatibilty.  
      That's what CONST84 is supposed to prevent.
      
      --gah
      
      
      
    2. login: "ghowlett"
    3. mimetype: "text/plain"
    4. username: "ghowlett"
  7. Ticket change [c1ea92758a] (rid 111407) by dgp on 2002-07-16 06:41:59:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      Here's a patch that addresses the issue.
      
      Apply the patch, `make genstubs`, and install.
      The resulting headers will be configurable 
      like so:
      
      #define USE_NON_CONST
      
      will disable all new CONSTs that cause any
      kind of source incompatibility with Tcl 8.3.
      This is the "#define & go" option.
      
      #define USE_COMPAT_CONST
      
      this does what USE_NON_CONST
      used to do -- disables only those new
      CONSTs that would otherwise force
      one to support only 8.4 and up.
      
      With neither of those defined, the
      header will supply the documented
      Tcl 8.4 interfaces.
      
      The patch also CONSTifies a few more
      APIs -- notably the Tcl_CmdProc typedef.
      Now that USE_NON_CONST offers a way
      to completely avoid the changes, there's no
      reason to delay the really tough one.
      
      Note that Tk, like other extensions,
      will need modifications to use the
      features of this patch.
      
      Please try and comment.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  8. Add attachment "const.patch" [f5836f9782] (rid 130119) by dgp on 2002-07-16 06:41:59.

  9. Ticket change [cbb8bca602] (rid 95570) by dgp on 2002-07-16 06:42:00:

    1. icomment:
      
      
      File Added - 27089: const.patch
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  10. Add attachment "tkconst.patch" [1f7f23e682] (rid 91155) by dgp on 2002-07-16 08:06:01.

  11. Ticket change [51955271b4] (rid 126157) by dgp on 2002-07-16 08:06:01:

    1. icomment:
      
      
      File Added - 27096: tkconst.patch
      
      Logged In: YES 
      user_id=80530
      
      
      Here is a companion patch for Tk.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  12. Ticket change [a05cebdc59] (rid 96798) by dgp on 2002-07-24 10:51:38:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      see also Patch 585105.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  13. Ticket change [a0e43baefb] (rid 96887) by dgp on 2002-08-05 10:28:33:

    1. closedate changed to: "2002-08-05T03:28:33"
    2. closer changed to: "dgp"
    3. foundin changed to: "obsolete: 8.4b2"
    4. icomment:
      Logged In: YES 
      user_id=80530
      
      fixed by acceptance of Patch 585105.
      
      
    5. login: "dgp"
    6. mimetype: "text/plain"
    7. resolution changed to: "Fixed"
    8. status changed to: "Closed"
    9. username: "dgp"