From: Martin DeMello Date: 2003-08-26T00:44:56+09:00 Subject: Re: Aspect oriented Everything? Ben Giddings wrote: > Volkmann, Mark wrote: >> When AOP is not used there are basically two choices for implementing >> functionality like logging, caching, persistence and other so called >> crosscutting concerns. You can implement them in every class that needs >> them or implement them in a common base class. > > In Ruby, couldn't you implement them in a mixin module? No, because mixins don't let you wrap methods. You can use mixins if you've designed your code from the start to use mixins that way, but you can't add them to abn existing codebase (whereas, from what I gather, you can with aspects). martin