Revised RFC on range design for D2

Bill Baxter wbaxter at gmail.com
Wed Oct 1 12:02:11 PDT 2008


On Wed, Oct 1, 2008 at 10:58 PM, Steven Schveighoffer
<schveiguy at yahoo.com> wrote:
> "KennyTM~" wrote
>> You cannot return a double& when calling .minutes because it simply does
>> not exist. Therefore, the interpreter have to clever enough to convert
>>
>>   t.minutes += 2;
>>
>> into
>>
>>   t.minutes = t.minutes + 2;
>>
>> i.e.
>>
>>   t.minutes(t.minutes() + 2);
>>
>> if .minutes does not return a reference. A similar problem also exist with
>> .opIndexAssign and .opSliceAssign.
>
> Yes yes!
>
> vote++
>
> -Steve

Me too++


--bb


More information about the Digitalmars-d-announce mailing list