[Issue 12514] Value range analysis in triple operator too

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Jul 1 11:50:03 PDT 2017


https://issues.dlang.org/show_bug.cgi?id=12514

Vladimir Panteleev <dlang-bugzilla at thecybershadow.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |dlang-bugzilla at thecybershad
                   |                            |ow.net
         Resolution|---                         |WORKSFORME

--- Comment #2 from Vladimir Panteleev <dlang-bugzilla at thecybershadow.net> ---
This is confusing ternary operator VRP with VPR between statements, which is a
separate issue and is currently not implemented.

VPR within ternary operators seems to work just fine:

ubyte y = (1000 <= ubyte.max) ? 1000 : 0;

--


More information about the Digitalmars-d-bugs mailing list