Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d6527b63525aa1bdacf2418bea349278bf8803a9
Ticket: 2458976fffffffffffffffffffffffffffffffff
Use gcc attributes to mark Tcl_Interp fields deprecated
User & Date: nobody on 2008-12-22 17:02:39
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Although there has been an effort to deprecate the fields of the Tcl_Interp structure as not being suitable for public use, because there is a backward compatibility macro that people can set, there is a danger that lazy programmers will just set it and then ignore the fact that they are using something that will go away. Then they'll get caught out and gripe (unfairly) that we didn't warn them. Programmers are like that.
    
    If we set it so that (when we're using gcc) we use 'deprecated' attributes on the result, freeProc and errorLine fields of the Tcl_Interp (i.e. so that if people don't define USE_INTERP_RESULT and USE_INTERP_ERRORLINE they guarantee that they won't get warnings) then such code as has a problem will become noisy and inclined to be fixed. People needing higher levels of assurance who are using -Werror probably ought to move to the new APIs sooner so as to get a longer guaranteed support period.
    
    More info about the right sort of attributes is on:
    http://gcc.gnu.org/onlinedocs/gcc/Variable-Attributes.html
    Search for 'deprecated' for what I'm talking about using.
    
  4. foundin changed to: "obsolete: 8.6a4"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "nobody"
  10. subsystem changed to: "45. Parsing and Eval"
  11. title changed to:
    Use gcc attributes to mark Tcl_Interp fields deprecated
    
  12. type changed to: "Bug"