From: Erik Veenstra Date: 2006-07-22T20:05:45+09:00 Subject: Re: Meta-Meta-Programming, revisited > > Do you remember the discussion about monitor-functions and > > metameta-programming? > > > > Well, I've completely rewritten this Module#wrap_method. It > > should be more robust now: thread-safety, better execution > > order of recursively wrapped methods, better execution > > order of method-is-defined-in-superclass, etc. I'm still fighting the method-is-defined-in-module situation... > > I added some convenience methods as well: > > Module#pre_condition and Module#post_condition. These are > > really easy to use! > > IMHO these functions need to be renamed. Those names remind > me of DBC and do not fully reflect what they do. Moreover, > some kind of DBC could be implemented using this module and > hence you'd have a name clash. I'll alias them... ;] (pre_action and post_action?) > Good work! Meanwhile, I use it all over: logging, counting, caching, statistics. It's all done without touching the original code. Feels good... gegroet, Erik V. - http://www.erikveen.dds.nl/