status of D optimizers benefiting from contracts ?

H. S. Teoh via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Nov 9 08:24:12 PST 2014


On Sun, Nov 09, 2014 at 04:12:06PM +0000, bearophile via Digitalmars-d-learn wrote:
> H. S. Teoh:
> 
> >Walter *did* mention recently that he was planning to eventually take
> >advantage of information in assert()'s as optimizer hints. Not sure
> >when this will happen, though, but it seems inevitable at some point.
> 
> And it caused a storm, because it's an awfully bad idea.
[...]

It's only a bad idea because people abuse assert() where it's not
appropriate.


T

-- 
I'm still trying to find a pun for "punishment"...


More information about the Digitalmars-d-learn mailing list