flagging unsigned subtraction assigned to bigger signed number?

Hipreme msnmancini at hotmail.com
Tue May 20 12:00:59 UTC 2025


On Tuesday, 20 May 2025 at 11:12:03 UTC, Guillaume Piolat wrote:
> On Tuesday, 20 May 2025 at 03:11:47 UTC, Steven Schveighoffer 
> wrote:
>>
>> Thoughts?
>>
>> -Steve
>
> Alt view: provide .ilength as a signed equivalent that would be 
> here ptrdiff_t

Such a great idea! Even though it is strange having 2 properties 
meaning the same, only the type being different, I would actually 
really like having a feature like that: it doesn't break anything 
and solve actual problems.

I was even saying like yesterday the same problems I find about 
not having integer division vs floating division operator. As I'm 
writing code more iteratively, that seems to become quite common 
in my day.


More information about the Digitalmars-d mailing list