[aspectc-user] construction advice

Adolfo Gustavo Serra Seca Neto adolfont at gmail.com
Fri May 20 01:49:58 CEST 2005


Is it possible to change the object "returned" by a constructor?

Suppose there is the following base code:

Formula *f1 = new Formula("A");
Formula *f2 = new Formula("A");

I want an aspect such that f1==f2. This is related to the Flyweight pattern.
Is this possible?

Thanks in advance,

Adolfo Neto

More information about the aspectc-user mailing list