[aspectc-user] slice function definition
Francisco Afonso
afonsofc at hotmail.com
Tue Nov 6 16:23:17 CET 2007
Hi,
I am having problems with this simple program for testing non-inline slice functions:
//-------------------------file: exec.ah---------------------------
aspect myAspect{
slice class mySlice{
public:
int counter;
void f();
}
slice void mySlice::f() { // this is line 14
printf("In f()\n");
}
advice "Myclass": slice mySlice;
};
//--------------------------------------------------------------------
The error message is:
exec.ah: 14: error: invalid member declaration near token ´slice´
Am I doing something wrong?
Francisco Afonso
_________________________________________________________________
Windows Live Hotmail and Microsoft Office Outlook – together at last. Get it now.
http://office.microsoft.com/en-us/outlook/HA102225181033.aspx?pid=CL100626971033
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.aspectc.org/pipermail/aspectc-user/attachments/20071106/2bd64946/attachment.html>
More information about the aspectc-user
mailing list