[aspectc-user] advices?
Olaf Spinczyk
Olaf.Spinczyk at informatik.uni-erlangen.de
Wed Jul 6 09:42:25 CEST 2005
Hi,
Jamal Siadat wrote:
> Hi,
> I have noticed with advices that it will match the name of the method
> regardless of the arguments that the method has. Is there any way to limit
> this?
>
> e.g. I have :
>
> void copy_next_packet_to_link( uint16 )
>
> and
>
> void copy_next_packet_to_link( buffer_event_t * be )
>
> but the advice "advice execution ("void
> simple_no_opt_buffer_t::copy_next_packet_to_link(uint16)") && args
> (length) : around ( uint16 length)" matches both of them! Is there a
> solution for this?
>
> Thanks in advance,
>
> P.S: Olaf I'm trying to modularize cross cutting concerns in layerd
> structures ( a network simulator to be exact).
this is definitely not intended! Could you please send my a very small
(but complete) example code for this bug, because I am not able to
reproduce the problem. If uint16 is a class, only the (uint16) version
of the function is matched. If it is a typedef, none is matched (as
expected).
Olaf
More information about the aspectc-user
mailing list