What would break if class was merged with struct

Stanislav Blinov via Digitalmars-d digitalmars-d at puremagic.com
Sat May 27 11:44:03 PDT 2017


On Saturday, 27 May 2017 at 18:13:52 UTC, Ola Fosheim Grøstad 
wrote:

>> Or did we leave behind your original question?
>
> No. I am talking about language semantics. Are the semantics 
> for class and struct conflicting or can they be merged?
>
> That is the question.
>
> I am talking about the language, as specified, not the 
> implementation.

Ahem. As specified, classes are reference types, struct aren't. 
What more is there to say?


More information about the Digitalmars-d mailing list