From: hammett <ha...@uo...> - 2005-04-04 15:04:57
|
Hello Eduard! ----- Original Message ----- From: "Eduard Ralph" <asp...@ed...> > As you've already used ANTLR, I was wondering if it might not be a better > idea to develop a C# compiler with some added keywords, that contains > "normal" C# as subset and implement the Aspect features into the compiler > instead. Wow! That's quite a move, huh? Instead of a compiler we could develop a pre-processor, but then we would need to integrate it with VS.Net and several issues could come afterwards... IMHO it would be best to stick with the dynamic approach, the same used by dynaop. > For one thing certain limitations like having to declare the methods > virtual > for an IMethodInterceptor could be resolved. If you weave the resulting code, then it's true. > For another thing it would also > allow for realizing Interceptors for constuctors or maybe for assignments > or > comparisons. I thought DynProxy would be able to intercept operators.... -- Cheers, hammett http://www.castleproject.org/~hammett |