ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> Tcl-core
Tcl-core
[TCLCORE] command delete trace expectations
by Donald G Porter other posts by this author
Sep 29 2003 3:30PM messages near this date
Re: [TCLCORE] Re: TIP #158: Distinguish the two 'Enter' keys on Windows | Re: [TCLCORE] command delete trace expectations
There are some refcounting/memory management bugs in command delete
traces.  See [Tcl Bug 811483].

Working on a fix, it seemed worthwhile to compare to the analogous
unset traces for variables, a longer established, more bug-fixed
code base.

The two seemingly analogous operations are opposite in the
expectations they fulfill.

  During a variable unset trace, the traced variable is already
  unset, but the trace has the power to recreate it.
  
  During a command delete trace, the traced command still exists,
  but will be deleted following the trace, and the trace can't do
  anything to stop it.
  
Is there an intentional design reason behind these differences?  Can
someone explain it?

Are there users of command delete traces that depend on these
details?

| Don Porter          Mathematical and Computational Sciences Division |
| donald.porter@[...].gov             Information Technology Laboratory |
| http://math.nist.gov/~DPorter/                                  NIST |
|______________________________________________________________________|



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Tcl-Core mailing list
Tcl-Core@[...].net
https://lists.sourceforge.net/lists/listinfo/tcl-core
Thread:
Donald G Porter

Vince Darley
Joe English
Vince Darley

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved