Hmm - about manifest/enum

Janice Caron caron800 at googlemail.com
Mon Dec 31 08:33:19 PST 2007


On 12/31/07, Steven Schveighoffer <schveiguy at yahoo.com> wrote:
> Except in the case of class references, right?  I find this to be the most
> unacceptable ommision.

But when are you /ever/ going to need such a thing in a real-life use
case, that you couldn't just code differently?

I thought that ommission was bad at first too, until I thought it
through. But Walter's right - its absence doesn't present any real
programming problems. There's really nothing you can't just do another
way. By contrast, its presence would really screw up the type system.
Weighing up the pros and cons, I'd say its better to live with this
than have to deal with all the complication that
mutable-ref-to-const-heap-data would entail.



More information about the Digitalmars-d mailing list