[aspectc-user] error: match expression for attributes not implemented in 0.7.2?

Olaf Spinczyk Olaf.Spinczyk at informatik.uni-erlangen.de
Mon Sep 22 11:49:24 CEST 2003


Hello,

Green Bryan - bgreen wrote:
> advice snippet:
> 
> advice call("% Stack::%") : around ()
> 
> Stack is a class.
> 
> error: match expression for attributes not implemented
> 
> I thought attribute match expressions were implemented (per 3.3 on page 16
> of the language reference)?
> 
> This is with ac++ 0.7.2 and gcc 2.96.
> 
> **********************************************************************
> The information contained in this communication is
> confidential, is intended only for the use of the recipient
> named above, and may be legally privileged.
> If the reader of this message is not the intended
> recipient, you are hereby notified that any dissemination, 
> distribution, or copying of this communication is strictly
> prohibited.
> If you have received this communication in error,
> please re-send this communication to the sender and
> delete the original message or any copy of it from your
> computer system. Thank You.
> 
> _______________________________________________
> aspectc-user mailing list
> aspectc-user at aspectc.org
> http://www.aspectc.org/mailman/listinfo/aspectc-user

I'm sorry, but no kind of advice for attributes is implemented yet. 
Thus, any match expressions for attributes are rejected.

This is not mentioned in the language reference manual, because this 
manual is intended to describe the language itself and not the 
limitations of a particular compiler implementation. In the compiler 
manual and the quick reference sheet there is a short note that 'set' 
and 'get' are not implemented yet.

BTW: What did you intend by writing call("% Stack::%")? Should this 
pointcut describe all function invocations on objects that are members 
of class Stack? But what does the first '%' mean in this case? Do you 
have a good example which shows the usefulness of such pointcut?

Yours,

Olaf






More information about the aspectc-user mailing list