A few simple syntactic proposals

Hans W. Uhlig huhlig at gmail.com
Fri Apr 18 14:48:16 PDT 2008


e-t172 wrote:
> Robert Fraser a écrit :
>> The only time I've run into the problem is in array declarations, but 
>> I know it's also a problem for template metaprogramming. An example of 
>> the array thing is declaring a literal array of strings:
>>
>> auto cities = [ "New York", "London", "Paris", "Tokyo" ]
> 
> It will compile if you replace "auto" by "char[][]":
> 
> char[][] cities = [ "New York", "London", "Paris", "Tokyo" ];
> 
> This solves the problem, I guess, because the "char[][]" removes the 
> static/dynamic array ambiguity.

a reason auto is bad :)
ambiguity is the program killer



More information about the Digitalmars-d mailing list