Old problem with performance

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sun Feb 8 16:47:43 PST 2009


Derek Parnell wrote:
> On Sun, 08 Feb 2009 11:13:00 -0800, Walter Bright wrote:
> 
> 
>> In particular, classes are *meant* to be used as reference types, but 
>> the program is trying to treat them as value types. Virtual functions 
>> are orthogonal to what value types are - a continuing problem C++ 
>> programs have is conflating value types with reference types.
> 
> In D, what is the recommend technique to derive one user-defined value type
> from another?
> 

Go to the future and use the alias this thingie.

Andrei



More information about the Digitalmars-d mailing list