View · Search · Index
No registered users in community xowiki
in last 10 minutes

Re: [Xotcl] full trace support for XOTcl methods/procs

From: Eckhard Lehmann <eckhardnospam_at_gmx.de>
Date: Wed, 02 Jan 2008 20:26:32 +0100

Kristoffer Lawson schrieb:
>>
>> I see that there is no need for another interception technique, but
>> it would be really helpful to have the current filter techiques also
>> applied to ordinary Tcl code inside methods.
>
> Why not just use the Tcl [trace] command for the normal Tcl commands?
How would you do that, together with filters? enterstep/leavestep work
only in Tcl proc's, while filters work only on objects. How could this
be mixed - as methods are composed of calls to objects (e.g. [my],
[self]) as well as ordinary Tcl code?
As long as it is separated, fine. But for Tcl statements in object
methods it seems more difficult to me.

Eckhard