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
Re: [TCLCORE] command delete trace expectations
by Vince Darley other posts by this author
Sep 29 2003 7:45PM messages near this date
Re: [TCLCORE] command delete trace expectations | Re: [TCLCORE] CFV: TIP#112 and TIP#150
On Mon, 29 Sep 2003, Donald G Porter wrote:
>  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?

As the person who originally implemented command-delete traces, I can say
there is no strong intentional design behind the differences.  In fact if
I were to submit a TIP now to introduce command delete/rename traces I
would prefer to make them more like variable traces.  I vaguely recall
seeing something in the code that suggested making 'rename foo {}' not
delete 'foo' would be quite problematic, but I don't recall exactly what
that was.  Certainly I don't have code that depends on the above design.

Vince.



-------------------------------------------------------
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