Why are structs and classes so different?

Alain De Vos devosalain at ymail.com
Sun May 15 15:59:17 UTC 2022


Can i summarize ,
structs are value-objects which live on the stack.
class instances are reference objects which live on the heap.


More information about the Digitalmars-d-learn mailing list