Skip to content
Tcl Source Code History Of Ticket 2458976fffffffffffffffffffffffffffffffff
Login

History Of Ticket 2458976fffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 2458976fffffffffffffffffffffffffffffffff

  1. Ticket change [d6527b6352] (rid 123781) by nobody on 2008-12-22 17:02:39:

    1. assignee initialized to: "msofer"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized 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 initialized to: "obsolete: 8.6a4"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "nobody"
    10. subsystem initialized to: "45. Parsing and Eval"
    11. title initialized to:
      Use gcc attributes to mark Tcl_Interp fields deprecated
      
    12. type initialized to: "Bug"
  2. Ticket change [aaa462be9d] (rid 100960) by dkf on 2008-12-23 00:12:32:

    1. icomment:
      Damnit, I submitted this!
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  3. Ticket change [5bb3776042] (rid 118378) by msofer on 2011-05-08 22:03:06:

    1. assignee changed to: "dkf"
    2. icomment:
      I do not see the possibility of deprecating fields of a struct, and we certainly do not want to deprecate Tcl_Interp. What di you have in mind?
      
      
    3. login: "msofer"
    4. mimetype: "text/plain"
    5. username: "msofer"
  4. Ticket change [5d0538abf0] (rid 115389) by dkf on 2012-04-10 16:31:06:

    1. icomment:
      Reading through the GCC docs again, I see that __attribute__((__deprecated__)) *can* be applied to fields, if your version of GCC is new enough. What it does is cause access to those fields (but not the overall structure) to generate a warning. (You can supply a custom warning message from gcc 4.5 onwards.) It doesn't generate an error (unless you specify that all warnings are errors, in which case you're very much at the mercy of problems in OS headers too).
      
      Tcl itself doesn't touch those fields (it does in the Interp structure, but that's not got any warnings applied to it).
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  5. Ticket change [827a23ae4b] (rid 117242) by dkf on 2012-04-10 16:31:07:

    1. closedate changed to: "2012-04-10T09:31:07"
    2. closer changed to: "dkf"
    3. icomment:
      
      
      allow_comments - 1
      
      
      
    4. login: "dkf"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "dkf"