Latest const expansion
Bruno Medeiros
brunodomedeiros+spam at com.gmail
Thu Sep 13 04:00:10 PDT 2007
Janice Caron wrote:
> On 9/13/07, Bruno Medeiros <brunodomedeiros+spam at com.gmail> wrote:
>> I think it would be
>> even better to have this:
>>
>> final const(T) - head/tail const
>> const(T) - tail const
>
> That's what we had in D2.0. That's what we've just got rid of.
>
No, it's not what he have now in D2.0.
I said that const(T) should mean "tail const". Since I didn't mention
anything else, it should be inferred that I mean that const(T) should
mean "tail const" *everywhere*.
In D2.0 const(T) means "tail const" if it's at the top level of a
declaration, and if it is not it means "head/tail const". That behavior
is of course, different from my suggestion.
--
Bruno Medeiros - MSc in CS/E student
http://www.prowiki.org/wiki4d/wiki.cgi?BrunoMedeiros#D
More information about the Digitalmars-d
mailing list