Manifest constants (was const again)
mandel
oh at no.es
Thu Dec 6 22:01:20 PST 2007
On Thu, 06 Dec 2007 21:44:16 -0800, Sean Kelly wrote:
> Walter Bright wrote:
>> mandel wrote:
>>> I think enums shouldn't be misused for compile time constants.
>>
>> But they already are used that way.
>
> They're all we've got!
We are doomed! <g>
No, it's not that bad. enums are a compile time constants, sure.
But using an enum for a single compile time constants gives me a headache.
Still, it's smth. many people are used to, myself included.
More information about the Digitalmars-d
mailing list