[aspectc-user] enum type matching

Olaf Spinczyk os at aspectc.org
Sun Mar 30 12:11:12 CEST 2008


Hi Arnd-Hendrik,

I'm sorry, but slice introductions into enums are not supported. When we
switched from the AspectJ-like introductions to our slice concept one of
the main objectives was the ability to introduce new elements not only
into classes, but, as I said before, it's not implemented for enums, yet.

BTW, the match mechanism, which is described in the reference manual, is
indeed able to match enums. For example, you could match a function that
returns an enumerator of a specific enum type as its result value. The
problem is that enum slices don't exist, yet.

Best regards,

Olaf

arnd-hendrik.mathias at nefkom.net schrieb:
> Hi,
> according to the ac-languageref a name pointcut like "myenum" should 
> match any class, struct, union and enum of that name. I just tried to 
> introduce a new member  to an enum that way, but without success. 
> Examining the .acc file it doesn't look like the name was matched 
> anyhow. Is there a special trick about matching an enum beyond the 
> "..gotta implement it yourself" approach ;-)
> Greetz
>
> Arnd-Hendrik
>
> _______________________________________________
> aspectc-user mailing list
> aspectc-user at aspectc.org
> http://www.aspectc.org/mailman/listinfo/aspectc-user
>





More information about the aspectc-user mailing list