What are the worst parts of D?

Timon Gehr via Digitalmars-d digitalmars-d at puremagic.com
Mon Sep 22 06:46:19 PDT 2014


On 09/22/2014 03:26 PM, Daniel Murphy wrote:
> "Timon Gehr"  wrote in message news:lvmh5b$eo9$1 at digitalmars.com...
>> When was int x(T)=2; introduced?
>
> At the same time as enum x(T) = 2; I think.
> ...

Is this documented?

>> Also, C-style array syntax would actually be string results(T)[] = "";.
>
> Nah, array type suffix goes before the template argument list.

It is results!T[2], not results[2]!T.


More information about the Digitalmars-d mailing list