Adding the ?. null verification

H. S. Teoh via Digitalmars-d digitalmars-d at puremagic.com
Fri Jun 20 07:29:19 PDT 2014


On Fri, Jun 20, 2014 at 08:57:46AM -0400, Etienne via Digitalmars-d wrote:
> On 2014-06-19 6:23 PM, 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.
> >:-(
> >
> >
> >T
> >
> 
> Meh, I don't mind specifying that condition manually after all...
> having a default value isn't really on top of my list =)

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

-- 
Laissez-faire is a French term commonly interpreted by Conservatives to mean 'lazy fairy,' which is the belief that if governments are lazy enough, the Good Fairy will come down from heaven and do all their work for them.


More information about the Digitalmars-d mailing list