const

Janice Caron caron800 at googlemail.com
Fri Mar 28 07:22:13 PDT 2008


On 28/03/2008, Oskar Linde <oskar.lindeREM at ovegmail.com> wrote:
>  1. Plain data types don't need the storage constancy to be a part of the
>  type.

But they do, for the following reason. Suppose I implement a custom
container. Then I would want

    MyContainer!(char)

to behave differently from

    MyContainer!(const(char))

The only way I can see of achieving this is if char and const(char)
are distinct types.



More information about the Digitalmars-d mailing list