[aspectc-user] Aspect Member
Olaf Spinczyk
Olaf.Spinczyk at informatik.uni-erlangen.de
Thu May 15 16:02:50 CEST 2003
Hi again,
Sven.Apel at metop-md.de wrote:
>
> Hallo again,
>
> is it possible to call aspect member functions out of normal C++ Code?
> Something like that:
>
> aspect A
> {
> public:
> long get() {return 4711;}
> };
>
> main()
> {
> long = A::get();
> }
Yes.
If you explicitly include the aspect header file and if the function get
becomes a static member function it is no problem to do that.
It's more a question whether something that represents and implements a
crosscutting concern should be called directly from the design point of
view. I leave that point to you.
Tschüss,
Olaf
More information about the aspectc-user
mailing list