Smart slicing
BCS
ao at pathlink.com
Thu Mar 20 21:19:42 PDT 2008
Reply to bearophile,
> Trevor Parscal:
>
>> Allowing negetive indexes seems like a nice feature - but in fact
>> acts to hide bugs in software, which is something that D makes
>> efforts not to do.
>>
> In practice it rarely produces bugs, but note that my whole post was
> not about negative indexes, it was about out-of-bound arrays
> (positive) indexes.
>
BTW: this "array[i%$];" does both.
> Bye,
> bearophile
More information about the Digitalmars-d
mailing list