DIP58: ".." as a Binary Operator

Robert Schadek realburner at gmx.de
Mon Mar 17 15:33:38 PDT 2014


On 03/17/2014 11:24 PM, H. S. Teoh wrote:
> On Mon, Mar 17, 2014 at 11:16:12PM +0100, Robert Schadek wrote:
>> replace .. with : to make lexing easier, please
> 	auto b = arr[(someCondition) ? w:x : y:z];
>
> :-(
>
>
> T
>
Thats a parsing problem.

1..1 makes you think you got a prefix of a float 1. but actually you got
an int slice_operator int. If there where no .. flex like generator
could handle D, at least as far as I can see it.


More information about the Digitalmars-d mailing list