const(FAQ)

Robert Fraser fraserofthenight at gmail.com
Tue Apr 1 00:20:20 PDT 2008


Jason House wrote:
> Walter Bright wrote:
> 
>> The same questions about const come up repeatedly, so I decided that it
>> was past time to put up a FAQ dedicated to const. The initial version is
>> far from complete, but it's a start.
>>
>> http://www.digitalmars.com/d/2.0/const-faq.html
> 
> It's good to see this :)
> I think it needs something on enums for manifest constants.

Agreed, and also explain why

invariant(int) x = 5;

Still reserves 4 bytes of space for an int.



More information about the Digitalmars-d mailing list