Prevent self-comparison without taking the address
Nick Treleaven
nick at geany.org
Thu Jul 25 15:40:29 UTC 2024
On Thursday, 25 July 2024 at 15:06:35 UTC, IchorDev wrote:
> I think your function most likely has a safe interface, so it
> can be marked as `@trusted` as-per [the
> spec](https://dlang.org/spec/function.html#safe-interfaces).
Just to mention that with -dip1000, taking the address of
variables is allowed, so the function would be @safe.
More information about the Digitalmars-d-learn
mailing list