Adding the ?. null verification

Etienne via Digitalmars-d digitalmars-d at puremagic.com
Fri Jun 20 09:51:20 PDT 2014


On 2014-06-20 10:29 AM, H. S. Teoh via Digitalmars-d wrote:
> True. Actually, I did my disassembly test again, and now I can't seem to
> coax gdc to optimize out the .exists flag, esp. when .or is involved.
> Perhaps that was a little too ambitious; maybe it's better to stick with
> the original simple solution after all. :P
>
>
> T
>

Try marking the or method as const, and the bool as immutable maybe?


More information about the Digitalmars-d mailing list