The new ?? and ??? operators

Arlen Albert Keshabyan arlen.albert at gmail.com
Sun Sep 23 12:22:40 PDT 2007


Stewart Gordon Wrote:

> 
> "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. 
> 

No. The code lines do the same thing anyway.



More information about the Digitalmars-d mailing list