Why are structs and classes so different?

forkit forkit at gmail.com
Wed May 18 10:53:03 UTC 2022


On Sunday, 15 May 2022 at 21:33:24 UTC, Ali Çehreli wrote:
> ....
> I still think my answer is the real one. My implied question 
> remains: Why does C++ have struct and class disticnction? I 
> know they have different default access specifications but does 
> that warrant two kinds?
> ....

Here is a very interesting article that researches this subject.

https://belaycpp.com/2021/09/17/history-of-c-explanation-on-why-the-keyword-class-has-no-more-reason-to-exist/



More information about the Digitalmars-d-learn mailing list