The new ?? and ??? operators

Arlen Albert Keshabyan arlen.albert at gmail.com
Mon Sep 24 00:44:00 PDT 2007


Derek Parnell Wrote:

> On Sun, 23 Sep 2007 11:34:09 -0400, Arlen Albert Keshabyan wrote:
> 
> > For instance:
> > 
> > int codeval = getValue1() > 5 ??? getValue2() >= 4 ??? getValue3() != 0 ??? 1; 
> 
> How would this evaluate in "long hand" code?
> 
>  int a = b() > c() ??? d() >= e() ??? f() != g();
> 
> -- 
> Derek Parnell
> Melbourne, Australia
> skype: derek.j.parnell

if(b() > c())
   a = b();
else
   if(d() >= e())
      a = d();
   else
      if(f() != g())
         a = f();




More information about the Digitalmars-d mailing list