TIP #330: Eliminate interp->result from the Public Headers

Title:Eliminate interp->result from the Public Headers
Version:$Revision: 1.5 $
Author:Kevin B. Kenny <kennykb at acm dot org>
Created:Monday, 22 September 2008


This TIP proposes to eliminate the long-deprecated interp->result field from the public headers.


The include file tcl.h is to be modified so that the result field of the Tcl_Interp data structure will be renamed to unused1 unless a preprocessor symbol, USE_INTERP_RESULT is defined.

Note that this change leaves the result field in the internal Interp data structure untouched, and all the code that manipulates it will still be there. Stubs compatiblity is thus preserved for extensions that compile against an 8.5 or earlier code base, and full source-level compatibility is available with the appropriate preprocessor definition.


The result field in this structure has been deprecated for a decade now, and yet extensions that use it still turn up. Extension writers need to be put on sterner notice that it will disappear as soon as Tcl 9.0 development is open.


Copyright 2008 by Kevin B. Kenny.

This document may be distributed subject to the terms and conditions set forth in the Open Publication License, version 1.0 [1].

Powered by Tcl[Index] [History] [HTML Format] [Source Format] [LaTeX Format] [Text Format] [XML Format] [*roff Format (experimental)] [RTF Format (experimental)]

TIP AutoGenerator - written by Donal K. Fellows