xotcl.wu-wien.ac.at
Begin main content
Search · Index
No registered users in community xotcl-mailing-list
in last 10 minutes

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

From: Eckhard Lehmann <eckhardnospam_at_gmx.de>
Date: Tue, 01 Jan 2008 13:33:54 +0100

Happy New Year!

> > I know there are filters, but I am looking for an easier way to
[..]

> Why not use filters with filterguards? I would've thought that would
> be the exact mechanism required.

Yes, it would be possible to do it that way, but it is very complicated:
- Register a filter that is by default applied to _all_ instprocs
- restrict the appliance of this filter via a filterguard

Sounds like "shooting from behind through the brest into the eye". Why not simply add/remove execution of code to particular methods, like with [trace]? There is already a [trace] method for XOTcl objects, but just for variables (at least from the documentation)...
Especially I look for a way to execute a proc before *every* statement inside an instproc. [trace] can do this via the "enterstep" and "leavestep" operators to [trace add execution]. Is this possible with filters and filterguards?

Thanks,
Eckhard

-- 
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger?did=10
Received on Tue Jan 01 2008 - 13:33:39 CET

This archive was generated by hypermail 2.2.0 : Thu Nov 06 2008 - 11:10:48 CET