Why structs and classes instanciations are made differently ?

Houdini via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Jul 25 00:52:54 PDT 2017


On Monday, 24 July 2017 at 17:42:30 UTC, Steven Schveighoffer 
wrote:

> In D, I would use classes for any time I need polymorphism, and 
> use structs otherwise.

OK, I'll adhere to this method. :)

Thanks to all for your answers.



More information about the Digitalmars-d-learn mailing list