Destructors, const structs, and opEquals

Brad Roberts braddr at puremagic.com
Mon Dec 13 19:25:01 PST 2010


On 12/13/2010 2:54 PM, Don wrote:

> I can't really escape the feeling that 'const' guarantees too little.
> It makes guarantees to the caller, but tells the callee *nothing*.

As far as I'm concerned, that's exactly what I want const for.  The caller can
rely on the object not being modified.

Later,
Brad


More information about the Digitalmars-d mailing list