[aspectc-user] Aspect data members
    Francisco Afonso 
    afonsofc at hotmail.com
       
    Tue Sep  4 12:52:25 CEST 2007
    
    
  
Hi,
I am receving the following error message in the code bellow:
exec.ah: 15 error: invalid member declaration near token ´99'
//------------- exec.ah
class Test{
  int myInt;
  Test(int var): myInt(var) {}
};
aspect myAspect {
  Test xyz(99);   // this is line 15
  advice execution ("% MyClass::method%(...)"): before(){
    // some printf here
  }
};
//--------------------------
It seems to me that AspectC++ does not allow creating aspect data members 
with construction arguments.
Is this a bug or am I doing something wrong?
Thanks,
Francisco
_________________________________________________________________
Kick back and relax with hot games and cool activities at the Messenger 
Café. http://www.cafemessenger.com?ocid=TXT_TAGHM_SeptHMtagline1
    
    
More information about the aspectc-user
mailing list