From: Christian Neukirchen Date: 2005-10-26T00:54:13+09:00 Subject: Re: Cut-based AOP "Trans" writes: > Christian Neukirchen wrote: >> "Trans" writes: >> >> > itsme213@hotmail.com wrote: >> >> Does this also provide a quite general form of dependency injection, >> >> very different in nature and weight compared to something like Needle? >> > >> > Had to give this some thought. Mu immediate conjecture is that it must >> > since DI and AOP are closely related. But I'm no DI expert like Jim >> > Weirich. But in giving it some conosideration, I imagine there's not >> > much more to it than: >> > >> Which will make you want "multiple-inheritance" for cutpoints. :-) > > I thought about this some but I don't understand what you mean. How ill > it make you want MI? Aren't mixins enough? Usually, you want to share a container and it's use between several classes. With traits, this may be possible; I'm not sure about mix-ins. >> It's not that trivial, but it certainly can be used to implement DI. > > I realize that it's a trivialized rendition, but could you provided > some pointers on improving? Not offhand, sorry. But the "magic" behind Dissident could be done with your cut points rather nicely. > Thanks, > T. -- Christian Neukirchen http://chneukirchen.org