Notes on Defective C++

Walter Bright newshound1 at
Sun Dec 7 18:33:11 PST 2008

Nick Sabalausky wrote:
> "Walter Bright" <newshound1 at> wrote in message 
>> Changing the private members changes offsets
>> of other members and derived classes, so they must all be recompiled. 
>> Inline functions are also, of course, affected.
>> The way to avoid this is to use interfaces.
> Would there be any problem with making all the public members come first, 
> then the protected, then the private? That way changing private members 
> wouldn't change the offsets of public and protected members. (Not that I 
> consider this a major issue.) 

It still would affect any derived classes.

More information about the Digitalmars-d mailing list