[aspectc-user] (no subject)
    Florin Cremenescu 
    fcremenescu at yahoo.com
       
    Thu May 30 13:18:02 CEST 2002
    
    
  
 Hello !
 I am a new user of aspectc, but I know a little bit
aspectj. 
 I would like to know if it is possible to have the
returned value of a proceed() inside an around advice.
To be clear, why this is not correct : 
aspect TraceAllFunctions {
	pointcut FctCalls() = call("ReturnError
RepositoryContext::%()");
	advice FctCalls() : ReturnError around() {
		ReturnError
theError=thisJoinPoint->action().trigger();
		if (theError != rcNoError) {
			//log the error
			cout<<"Error ! "<<theError<<endl;
		}else {
			cout<<"NoError !"<<endl;
		}
		return theError;
	}
}; 
 Thanks,
    Florin Cremenescu
__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
    
    
More information about the aspectc-user
mailing list