Eliding of slice range checking

Per Nordlöw per.nordlow at gmail.com
Fri Oct 25 21:33:26 UTC 2019


On Friday, 25 October 2019 at 15:22:12 UTC, Ali Çehreli wrote:
> On 10/25/2019 05:37 AM, Stefan Koch wrote:
>
>> just replace x = a[i] with x = a.ptr[i];
>
> That's a neat trick!
>
> Ali

But it requires the function to be qualified as @trusted which 
might hide a @system == operator. How common is it for a == 
operator to be unsafe?


More information about the Digitalmars-d-learn mailing list