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?