Range Type

Janice Caron caron800 at googlemail.com
Mon Mar 24 08:40:31 PDT 2008


On 24/03/2008, Craig Black <cblack at ara.com> wrote:
> Why not just leave out the second type and save some typing?
>
>  int.. x;

That would make "a..b" semantically ambiguous - is "a.." a type and
"b" a value, or is "a..b" an expression?

We need to keep D's grammar context free.



More information about the Digitalmars-d mailing list