foo!(bar) ==> foo{bar} ==> foo[bar] (just Brackets)

Robert Fraser fraserofthenight at gmail.com
Tue Oct 21 16:29:37 PDT 2008


Steven Schveighoffer wrote:
> For example, the following doesn't compile:
> 
> int i;
> for(i = 0; i < 100; i++);
>   writeln("%s", i);

That has to be one of my top 5 D features. I can't tell you how many 
times that's bit me in the ass in other languages and the first time I 
ran into it in D and saw it was a compile error was magical.



More information about the Digitalmars-d mailing list