Can i summarize , structs are value-objects which live on the stack. class instances are reference objects which live on the heap.
Re: Why are structs and classes so different?
Alain De Vos via Digitalmars-d-learn Sun, 15 May 2022 09:01:39 -0700
- Why are structs and classes s... Kevin Bailey via Digitalmars-d-learn
- Re: Why are structs and ... Alain De Vos via Digitalmars-d-learn
- Re: Why are structs ... forkit via Digitalmars-d-learn
- Re: Why are structs ... bauss via Digitalmars-d-learn
- Re: Why are stru... Kevin Bailey via Digitalmars-d-learn
- Re: Why are ... Ola Fosheim Grøstad via Digitalmars-d-learn
- Re: Why are ... Ali Çehreli via Digitalmars-d-learn
- Re: Why... Kevin Bailey via Digitalmars-d-learn
- Re: Why are structs and ... Guillaume Piolat via Digitalmars-d-learn
- Re: Why are structs and ... Mike Parker via Digitalmars-d-learn