DMD 1.011 release
Lionello Lunesu
lio at lunesu.remove.com
Wed Apr 11 03:54:20 PDT 2007
Walter Bright wrote:
> Kirk McDonald wrote:
>> From the changelog:
>>
>> * final for variables now works.
>>
>> What does this do? I didn't see anything in an obvious place in the
>> spec explaining it.
>
> It's the first part of the final/const/invariant thing. No documentation
> is written on it yet. All final is is that if you declare a variable as
> final, you can only initialize it. It cannot be reassigned.
Is that like what "const" does, at the moment?
L.
More information about the Digitalmars-d-announce
mailing list