D const design rationale
Sean Kelly
sean at f4.ca
Tue Jun 26 21:35:40 PDT 2007
Walter Bright wrote:
> Oskar Linde wrote:
>> Walter Bright skrev:
>>>
>>> readonly is a synonym for const, so no improvement there.
>>
>> Read-only isn't synonymous with constant.
>
> Consider ROM, i.e. "Read Only Memory".
"read only" doesn't say anything about the scope of the property. It's
only equivalent to "constant" if that scope is equal to the scope of the
data it references.
Sean
More information about the Digitalmars-d
mailing list