Version 14 of Deprecated Parts of Tcl and Tk

Updated 2009-11-25 16:25:37 by dkf

This page is building up a list of bits of Tcl and Tk that are deprecated and which may be removed in 9.0.


Tcl

  1. The case command.
  2. The old puts syntax.
  3. The opt package.

Tk

  1. The message widget.
  2. Stippling of canvas items and text tags (non-portable).
  3. Bitmap canvas items (not bitmap images!)
  4. Old pack syntax.

Items marked as deprecated in Tcl and Tk without a specific version or date for removal yet

Tcl C API

  • TclpMatchFiles
  • Tcl_Backslash
  • Tcl_DStringTrunc
  • Tcl_GlobalEval, Tcl_GlobalEvalObj, Tcl_VarEval, Tcl_VarEvalVA
  • Tcl_Read, Tcl_Write
  • Tcl_EvalTokens
  • Tcl_AppendResult, Tcl_AppendResultVA, Tcl_AppendElement, Tcl_FreeResult,
    • DKF: Tcl_AppendResult is not deprecated.
  • direct access to interp->result
    • DKF: This is gone in 8.6 unless you use a back-compat macro (whose name I forget) when compiling your code.

Tcl script API

  • trace variable, trace vdelete, trace vinfo
  • clock scan without a -format option provided
  • ARE regular expression comments ((?#ttt)
  • :<: and :>: regular expression bracketed constraints
  • tcltest commands and variables that are undocumented in the tcltest.n man page

Tk C API

  • TK_CONFIG_OPTION_SPECIFIED bit in Tk_ConfigureWidget is deprecated
    • DKF: Actually, we want to scrap that whole API. Can't do it yet; it's still in use for things like canvas items. And the scrollbar too. But we want to get rid of it.

Tk script API

  • scrollbar widget set totalUnits windowUnits firstUnit lastUnit syntax is deprecated

dkf - 2009-11-24 18:07:08

Note that I may not have thought of everything. There's quite a few crufty corners in there, quietly mouldering away...