TIP #32 Version 1.2: Add Tcl_Obj support to traces

This is not necessarily the current version of this TIP.


TIP:32
Title:Add Tcl_Obj support to traces
Version:$Revision: 1.2 $
Author:David Cuthbert <dacut at kanga dot org>
State:Draft
Type:Project
Tcl-Version:8.4a2
Vote:Pending
Created:Friday, 23 March 2001
Discussions To:news:comp.lang.tcl
Keywords:trace, Tcl_Obj

Abstract

This document proposes to add Tcl_Obj support for trace procedures written in C.

Rationale

The Tcl_Obj system was introduced in version 8.0, making computations (potentially) much more efficient by eliminating many type conversions to and from strings. However, the trace API continues to require character strings in both command and variable traces.

Specification

Add the following functions to the Tcl core:

Change History

30 March 2001 - Changed return value of objProc to a Tcl_Obj * instead of int (and using the interpreter result to indicate an error). This is more consistent with the current behavior (but without the bug). -dac

See Also

Tcl manual pages Tcl_TraceVar and Tcl_CreateTrace.

Copyright

Copyright © 2000 by David Cuthbert. Distribution in whole or part, with or without annotations, is unlimited.


Powered by TclThis is not necessarily the current version of this TIP.

TIP AutoGenerator - written by Donal K. Fellows