The new ?? and ??? operators

Stewart Gordon smjg_1998 at yahoo.com
Sun Sep 23 11:39:37 PDT 2007


"Arlen Albert Keshabyan" <arlen.albert at gmail.com> wrote in message 
news:fd68lm$f4r$1 at digitalmars.com...
> and...
>
> A a = APointer1 ?? APointer2 ?? APointer3;
>
> the line above is equal to the line below:
>
> A a = APointer1 != null ??? APointer2 != null ??? APointer3 != null ??? 
> null;

Not by the way you specified it.  The first would assign to a an actual 
object reference; the second would try to assign a boolean value.

Stewart.

-- 
My e-mail address is valid but not my primary mailbox.  Please keep replies 
on the 'group where everybody may benefit. 




More information about the Digitalmars-d mailing list