Annoyance with new integer promotion deprecations
Jonathan M Davis
newsgroup.d at jmdavisprog.com
Sun Feb 18 20:01:39 UTC 2018
On Sunday, February 18, 2018 19:42:07 Johan Engelen via Digitalmars-d wrote:
> > There are hundreds of lines I need to molest to make the
> > compiler shut up. I won't type another line of code on my
> > colour library until this noise is gone... I will not maintain
> > it. I am emotionally incapable of assaulting my code with those
> > casts.
>
> Using the `-transition=intpromote` compile flag is no option for
> you?
Since that's a transition flag, it's really only a stop-gap solution. So, if
his issue is that he doesn't like having the casts in his code as opposed to
not wanting to deal with updating his code right now, the flag really
doesn't help.
I'd say that if he's not going to abandon his library, he either needs to
just grit his teeth and use the explicit casts, or he's going to need to
refactor the code so that the casts are unnecessary.
- Jonathan M Davis
More information about the Digitalmars-d
mailing list