Video: Generic Programming Galore using D @ Strange Loop 2011

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Mon Apr 16 20:55:16 PDT 2012


On 4/16/12 10:00 AM, Denis Shelomovskij wrote:
> 11.04.2012 20:23, Andrei Alexandrescu написал:
>> http://www.infoq.com/presentations/Generic-Programming-Galore-Using-D
>>
>> Andrei
>
> 27:17
> It's valid to pass an empty list. Compilation will fail when T.length =
> 1 for 'x[1]'.
>
> Andrei is really looking embarrassed telling this like if he knows it's
> a lie but he has to say it because something forces him to do it... He
> waged somebody it? :)

I think "lie" would be pushing it. The point made is clear albeit I 
rendered it clumsily - static if does not attempt to compile the branch 
not taken.

Andrei




More information about the Digitalmars-d-announce mailing list