Allow designated initialization of struct
IchorDev
zxinsworld at gmail.com
Tue Nov 12 21:36:08 UTC 2024
On Tuesday, 12 November 2024 at 11:18:44 UTC, Dennis wrote:
> On Friday, 8 November 2024 at 20:20:19 UTC, IchorDev wrote:
>> I thought the point of requiring a cast after promotion was
>> preventing under/overflow.
>
> Thanks for spotting that, I added it to the issue tracker:
> https://issues.dlang.org/show_bug.cgi?id=24855
>
> If you stumble on other failure cases, please add them as well.
I tried to show the flaws of a feature and instead I found a bug.
Classic. Thanks for opening the issue.
I still think VRP needs to be used with a lot of attention to
detail in templated code to prevent errors when overflow is the
desired outcome; whereas vomiting casts everywhere will only harm
your eyes.
More information about the dip.ideas
mailing list