Re: A tcl command logger?
From: Don Porter (dgp_at_email.nist.gov)
Date: 03/24/05
- Next message: George Petasis: "Re: A tcl command logger?"
- Previous message: Bruce Hartweg: "Re: How to emulate the Expect WAIT command in pure TCL"
- In reply to: George Petasis: "Re: A tcl command logger?"
- Next in thread: George Petasis: "Re: A tcl command logger?"
- Reply: George Petasis: "Re: A tcl command logger?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 24 Mar 2005 21:02:56 GMT
Helmut Giese wrote:
>> newer versions of Tcl allow you to set traces on command execution,
>> and even fine-graining this whether you want to trace 'enter' or
>> 'leave'
George Petasis wrote:
> Thank you both for your answers. However, as it has to run to
> tcl 8.4,
Execution traces are in Tcl 8.4.
> What was
> surprising though was to find that the 'if' command calls
> 'expr' to make the evaluation.
No, it doesn't.
> I would have expected 'if' to call the C API that
> 'expr' uses directly.
It does; why do you believe otherwise.
More precisely, the expression evaluations are compiled into bytecode,
which gets executed.
> b) If anybody messes with 'expr', also 'if' (and possibly 'while',
> 'for', etc) will be affected. Is this something expected?
"messes with 'expr'" how, exactly?
-- | Don Porter Mathematical and Computational Sciences Division | | donald.porter@nist.gov Information Technology Laboratory | | http://math.nist.gov/~DPorter/ NIST | |______________________________________________________________________|
- Next message: George Petasis: "Re: A tcl command logger?"
- Previous message: Bruce Hartweg: "Re: How to emulate the Expect WAIT command in pure TCL"
- In reply to: George Petasis: "Re: A tcl command logger?"
- Next in thread: George Petasis: "Re: A tcl command logger?"
- Reply: George Petasis: "Re: A tcl command logger?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|