The new ?? and ??? operators

Vladimir Panteleev thecybershadow at gmail.com
Sun Sep 23 09:18:05 PDT 2007


On Sun, 23 Sep 2007 18:34:09 +0300, Arlen Albert Keshabyan <arlen.albert at gmail.com> wrote:

[regarding ???]
> The lvalue gets the first rvalue that evaluates to true (evaluation goes from left to right). 

So the result can only be boolean?
In this case, I don't understand how
  a = b ??? c ??? d;
is different from
  a |= b || c || d;

If b, c and d are false then a is unchanged.

-- 
Best regards,
 Vladimir                          mailto:thecybershadow at gmail.com



More information about the Digitalmars-d mailing list