Why does intpromote spew warnings for ~ operator?
Walter Bright
newshound2 at digitalmars.com
Sun Sep 12 18:13:14 UTC 2021
On 9/12/2021 7:14 AM, Steven Schveighoffer wrote:
> Right now, the deprecation is telling users *under penalty of not compiling* to
> do something that will achieve nothing when intpromote is enabled.
The question for ~x is to promote x to an int and then complement, or complement
and then promote.. Those are not equivalent.
The idea is to move towards doing it the C way, which is promote and then
complement.
More information about the Digitalmars-d
mailing list