Manifest constants - why not 'alias' ?
Leandro Lucarella
llucax at gmail.com
Fri Dec 7 09:32:43 PST 2007
Walter Bright, el 6 de diciembre a las 16:51 me escribiste:
> Bill Baxter wrote:
> >Enum is short for 'unumeration'. But manifest constants aren't enumerating anything. It
> >makes no sense.
>
> Because we already use enums to declare constant values.
>
> enum { x = 3 }
That's the worst reason ever! There are so many things we already use that
sucks...
As has been already said, we use enum to declare constants because is the
only (ugly) way.
--
Leandro Lucarella (luca) | Blog colectivo: http://www.mazziblog.com.ar/blog/
----------------------------------------------------------------------------
GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145 104C 949E BFB6 5F5A 8D05)
----------------------------------------------------------------------------
MATAN AL PERRO: DICEN QUE ESTABA POSEIDO POR EL DEMONIO...
-- Crónica TV
More information about the Digitalmars-d
mailing list