Adding the ?. null verification

Etienne via Digitalmars-d digitalmars-d at puremagic.com
Fri Jun 20 06:11:28 PDT 2014


On 2014-06-19 6:30 PM, H. S. Teoh via Digitalmars-d wrote:
> On Thu, Jun 19, 2014 at 03:23:33PM -0700, H. S. Teoh via Digitalmars-d wrote:
> [...]
>> Unfortunately, it appears that opDispatch has become too complex to be
>> inlined, so now gdc is unable to simplify it to a series of nested
>> if's.  :-(
> [...]
>
> Surprisingly, if we just stick .exists in there unconditionally, like
> you did, then gdc actually optimizes it away completely, so that we're
> back to the equivalent of nested if's! So your solution is superior
> after all.  :)
>
>
> T
>

Oh I just saw this. Good, so I can keep my .or() method ! :)


More information about the Digitalmars-d mailing list