[aspectc-user] Some questions

David Come davidbrcz at gmail.com
Tue Jun 2 01:02:49 CEST 2009


Hi all.
I'm discovering Aspect C++ and I have a some questions.
1/  How to have poincuts in function of others pointcuts ?
Exemple:
aspect A
{
 pointcut virtual who() =0;
 pointcut what()= "% who()::set%(...)";
};
aspect B : public A
{
pointcut who() = "Z"; //what() <=> "% Z::set%(...)"
};
Iv' tried "%"## who() ## "set%(...)", it compiles but it catches all things.
2/ How to use tjp->that() ?
I've tried something like this
aspectC
{
 pointcut  who() ="What_you_want";
 advice execution(who()): around ()
{
tjp->that(); // it's a void*, how to use it without a ugly cast ? Does there
are some kind of templates to avoid cast ?
}
};
3/  I've not understood cflow. What it means ? How to use it ?
Thanks.
David Côme.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.aspectc.org/pipermail/aspectc-user/attachments/20090602/542ce2dd/attachment.html>


More information about the aspectc-user mailing list