Yet another const system - for everyone to enjoy

Janice Caron caron800 at googlemail.com
Thu Sep 13 07:33:55 PDT 2007


On 9/13/07, Alex Burton <alexibu at mac.com> wrote:

The constructor of Bob is outrageously dodgy!
Bob() : changer(new Changer(this)), x(0) {}

You really shouldn't be passing "this" out of a constructor, when
"this" is not yet constructed!



More information about the Digitalmars-d mailing list