[OT] The Usual Arithmetic Confusions

Paul Backus snarwin at gmail.com
Fri Feb 18 00:25:50 UTC 2022


On Thursday, 17 February 2022 at 23:23:40 UTC, Walter Bright 
wrote:
> On 2/17/2022 2:51 PM, bachmeier wrote:
>> But that would mean you have to give up D's arrays. All I did 
>> was feed the length of an array to std.range.iota.
>
> Cast it to ptrdiff_t and you'll be fine.

If only there were some way we could remind people to use an 
explicit cast in situations like these...


More information about the Digitalmars-d mailing list