[aspectc-user] adding variables and using them
Fabian Scheler
fabian.scheler at gmail.com
Fri Jul 15 09:00:04 CEST 2005
Ah ... I accidentally pressed the send-button ...
advice call("% A::a(...)") : around() {
tjp->target()->x = 0;
}
if you'd prefer to use an execution-advice, you have to use the that()-method:
advice execution("% A::a(...)") : around() {
tjp->that()->x = 0;
}
Furthermore did you not call, tjp->proceed() in your examplem, so the
original method() will not be executed, this probably not what you
want.
Ciao, Fabian
More information about the aspectc-user
mailing list