[Issue 14534] Front-end should lower all non-scalar condition expressions
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Mon May 4 03:29:52 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=14534
Iain Buclaw <ibuclaw at gdcproject.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ibuclaw at gdcproject.org
--- Comment #3 from Iain Buclaw <ibuclaw at gdcproject.org> ---
(In reply to yebblies from comment #2)
> The way to make this precisely defined is to put it in the spec and test
> suite, not to move the lowering into the frontend. Lowering early is not
> without downsides.
In some cases, yes. But in this instance, I don't think so.
After we've verified condition->toBoolean() the only other time semantic
analysis is done on the condition is for optimizations. And I seriously doubt
that we are likely going to get any meaningful constant literal optimized out
from any of these types.
--
More information about the Digitalmars-d-bugs
mailing list