Const sucks

Janice Caron caron800 at googlemail.com
Tue Sep 11 12:38:09 PDT 2007


On 9/11/07, Regan Heath <regan at netmail.co.nz> wrote:
> No problem:
>
> macro x = 42;   //int
> macro x = 42U;  //uint
> macro x = 42L;  //long
> macro x = 42UL; //ulong

Maybe it's just a gut feeling thing.

const ulong x = 42; /* obvious to newbies what it does */
macro x = 42UL; /* looks weird */



More information about the Digitalmars-d mailing list