Struct vs Class

Paolo Invernizzi arathorn at NOSPAM_fastwebnet.it
Mon Dec 11 04:03:09 PST 2006


Derek Parnell wrote:
> Have I got the difference between Class and Struct right? Have I missed
> anything?

One big thing I'm missing... invariants! Really handy for catching bugs 
in struct like point/rectangle etc...

---
Paolo Invernizzi


More information about the Digitalmars-d-learn mailing list