Tuple literal syntax

Walter Bright newshound2 at digitalmars.com
Thu Oct 7 10:52:56 PDT 2010


Ellery Newcomer wrote:
> I might be missing something, but how does this proposal get around the 
> ambiguity in
> 
> (a,b,c)[0]
> 
> ?
> 
> Currently, it's valid C syntax and valid D syntax. In your proposal it 
> would be valid tuple syntax too.

As has been proposed frequently, the , operator would have to be dispensed with.


More information about the Digitalmars-d mailing list