Hi,
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