[aspectc-user] FW: Bgginner question: accessing introduced fields - NEVERMIND

Bob Ollerton spam_dumpster2 at cox.net
Sun Mar 13 01:12:29 CET 2005


Got it.

-----Original Message-----
From: Bob Ollerton [mailto:spam_dumpster2 at cox.net]
Sent: Saturday, March 12, 2005 11:54 AM
To: aspectc-user at aspectc.org
Subject: Bgginner question: accessing introduced fields



class A{
public:
    A(){};
    static long getTime();
};

aspect TimeAspect{
};

Assume that you want TimeAspect to introduce a timestamp field (type long)
to a class A and you want  to set the timestamp for each instance of A using
A::getTime() when its constructor is invoked.  What would TimeAspect look
like?

- Bob




More information about the aspectc-user mailing list