just an idea (!! operator)

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Thu Jul 12 12:03:47 PDT 2012


On 7/12/12 2:37 PM, deadalnix wrote:
> On 12/07/2012 19:32, Andrei Alexandrescu wrote:
>> On 7/12/12 12:24 PM, Daniel Murphy wrote:
>>> Yeah, I've been planning to try and get this into D one day. Probably
>>> something like:
>>> (a ?: b) -> (auto __tmp = a, __tmp ? __tmp : b)
>>
>> gcc used to have that extension and they dropped it...
>>
>> Andrei
>>
>
> Do you know why ? It have been useful to me in languages that support it.

I apparently misspoke. Here's the search: http://goo.gl/zjKiJ

Andrei


More information about the Digitalmars-d mailing list