Annoyance with new integer promotion deprecations
H. S. Teoh
hsteoh at quickfur.ath.cx
Tue Feb 6 06:08:49 UTC 2018
On Mon, Feb 05, 2018 at 10:18:57PM -0500, Steven Schveighoffer via Digitalmars-d wrote:
> On 2/5/18 10:05 PM, Nick Sabalausky (Abscissa) wrote:
>
> > Right, it wouldn't always get rid of the message, but I would think
> > it should when it's known the value cannot be -128, such as the
> > specific example you posted.
>
> VRP is only for one statement. That is, once you get to the next
> statement it "forgets" what the value range is.
[...]
IMO, we should extend this past just one statement. It would lead to
more possibilities for optimizations and possibly other features too.
Though I understand that Walter has reservations about doing this for
some reason.
T
--
A bend in the road is not the end of the road unless you fail to make the turn. -- Brian White
More information about the Digitalmars-d
mailing list