[aspectc-user] adding variables and using them

Fabian Scheler fabian.scheler at gmail.com
Fri Jul 15 08:57:08 CEST 2005


Hi Jamal,

when you want to access a variable in an object, t.m. not a variable
of an aspect, you have to use 'tjp->that()' or 'tjp->target()'. The
that()-method of the JoinPoint API returns a pointer to the object
initiaiting a call, the target()-method a pointer to the object that
is target of a call. Your example therefore should like quite like
this:

advice call("% A::a(...)") : around() {

}




More information about the aspectc-user mailing list