Why are structs and classes so different?

Ali Çehreli acehreli at yahoo.com
Sun May 15 16:36:05 UTC 2022


On 5/15/22 08:26, Kevin Bailey wrote:

 > structs and classes are so different.

I think a more fundamental question is why structs and classes both 
exist at all. If they could be the same, one kind would be sufficient. 
And the answer is there are value types and there are reference types in 
programming.

Ali



More information about the Digitalmars-d-learn mailing list