const

Simen Kjaeraas simen.kjaras at gmail.com
Thu Mar 27 23:37:21 PDT 2008


On Fri, 28 Mar 2008 04:06:21 +0100, Walter Bright  
<newshound1 at digitalmars.com> wrote:

> Jason House wrote:
>> Back when everyone was trying to understand the new const designs, we  
>> all
>> called const "readonly".  Every time someone asks today, we always  
>> describe
>> it as readonly. Why not use that term if it makes sense to everyone?!
>
> const, readonly, invariant, and immutable all mean exactly the same  
> thing.


As words, yes. But in D, const is "readonly", invariant is "will never  
change". And enum is...



More information about the Digitalmars-d mailing list