The new ?? and ??? operators

Stewart Gordon smjg_1998 at yahoo.com
Sun Sep 23 15:14:46 PDT 2007


"Arlen Albert Keshabyan" <arlen.albert at gmail.com> wrote in message 
news:fd6ee0$nd4$1 at digitalmars.com...
> Stewart Gordon Wrote:
>> "Arlen Albert Keshabyan" <arlen.albert at gmail.com> wrote in message
>> news:fd68lm$f4r$1 at digitalmars.com...
>> > 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.
<snip>
> No. The code lines do the same thing anyway.

Which same thing - evaluating to a boolean or evaluating to an object 
reference?  Are you going to supply a corrected version of your proposal?

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