Const sucks

Janice Caron caron800 at googlemail.com
Tue Sep 11 11:07:42 PDT 2007


On 9/11/07, Janice Caron <caron800 at googlemail.com> wrote:
> I argue that per-class-instance const variables is so silly, that you
> might just as well let the compiler "disappear" them.

Otherwise I'll end up doing

class C
{
    enum : int { n = 42; }
}

because I want my type specified at the point of declaration.



More information about the Digitalmars-d mailing list