dmd 1.057 and 2.041 release

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Mon Mar 8 15:35:50 PST 2010


Robert Clipsham wrote:
> On 08/03/10 22:53, Andrei Alexandrescu wrote:
>> What I usually do is:
>>
>> T foo(T)(T s) if (is(typeof(s + s))) {
>> }
>>
>> Andrei
> 
> That's far nicer, I keep forgetting about is(typeof()), thanks :)

It'll be hard to forget once TDPL will be out there, the idiom is 
present in several places.

Man I can't wait for that book to be out.


Andrei


More information about the Digitalmars-d-announce mailing list