[OT] The Usual Arithmetic Confusions

Walter Bright newshound2 at digitalmars.com
Fri Feb 18 04:32:56 UTC 2022


On 2/17/2022 8:31 PM, Walter Bright wrote:
> On 2/17/2022 4:07 PM, deadalnix wrote:
>> Then you don't get to know the length of a slice, this is going to be really 
>> limiting really quick.
> 
> cast(ptrdiff_t)length

     ptrdiff_t len = array.length;

also works.


More information about the Digitalmars-d mailing list