Additional Binary Operators

deadalnix deadalnix at gmail.com
Mon Mar 4 06:06:17 PST 2013


On Sunday, 3 March 2013 at 21:38:44 UTC, Andrei Alexandrescu 
wrote:
> On 3/3/13 9:42 AM, Manu wrote:
>> GCC has min and max operators, and the syntax is very clever:
>>   min = a <? b;
>>   max = a >? b;
>> Ie, a shorthand of the ?: operator, in a similar way that C# 
>> has '??'
>> (another really nice shorthand).
>
> Gone. http://gcc.gnu.org/onlinedocs/gcc/Deprecated-Features.html
>
> Andrei

I see nothing about the ?:, and it is indeed useful (or the ?? in 
C#, that has the same purpose).


More information about the Digitalmars-d mailing list