[aspectc-user] if(...) in pointcut-expressions

hansman@pandora.be hans.vanbroeckhoven at telenet.be
Wed Jun 22 19:18:15 CEST 2005


Hello,

I was wondering if there are any plans to include if(...) functionality in AspectC++'s poincut-expressions.
Currently I'm in a situation where it would be really nice to be able to do something like :

aspect foo {
    bool flag;
    pointcut bar() = call("% %::func()") && if(flag);

    advice bar() : after() {
       // ...
    }

    advice ... : after() {
       // manipulation of flag
    }

};


Greets,
Hans






More information about the aspectc-user mailing list