const

Walter Bright newshound1 at digitalmars.com
Fri Mar 28 11:51:15 PDT 2008


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

We went around on that for a while. It turns out that for generic code 
to work, T and const(T) had to be distinct types, even if T was a basic 
type like char or int.



More information about the Digitalmars-d mailing list