Pop Quiz what is wrong with this code?

Steven Schveighoffer schveiguy at gmail.com
Mon Jun 22 18:37:41 UTC 2020


On 6/22/20 2:19 PM, Kagamin wrote:
> On Monday, 22 June 2020 at 13:24:32 UTC, Steven Schveighoffer wrote:
>> But the OP rejected the idea of using ptrdiff_t (or did he?), which 
>> would solve that problem.
>>
>> It's really hard to tell what the problem is without more definition 
>> or explanation.
> 
> OP is precise:
> 
> On Saturday, 20 June 2020 at 16:00:40 UTC, Danni Coy wrote:
>> more specifically I didn't want them to be unsigned
> 
> The discussion was just derailed.

That is exactly what declaring the variables to be ptrdiff_t would do.

I guess he didn't specifically reject that answer, but proceeded to say 
something else is the "bigger problem".

If using ptrdiff_t doesn't work, then I would have to have more 
information about why it doesn't work.

-Steve


More information about the Digitalmars-d mailing list