[aspectc-user] slice function definition

Francisco Afonso afonsofc at hotmail.com
Tue Nov 6 16:23:17 CET 2007


I am having problems with this simple program for testing non-inline slice functions:

//-------------------------file: exec.ah---------------------------
aspect myAspect{

    slice class mySlice{
         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.
-------------- 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