Struct "inheritance"

Trass3r un at known.com
Sat Feb 4 03:49:19 PST 2012


> So why not just use classes? I've understood it as there may be a  
> performance gain by using structs over classes, and in my program Point  
> and Coordinate are used heavily.

The other big difference is value vs. reference type.
You can use alias this to achieve something like "struct inheritance".


More information about the Digitalmars-d-learn mailing list