Prevent self-comparison without taking the address

Dennis dkorpel at gmail.com
Thu Jul 25 13:01:53 UTC 2024


On Thursday, 25 July 2024 at 11:46:29 UTC, IchorDev wrote:
> Also just so you know, placing `@safe:` there will not affect 
> the contents of `S`. It has to be inside the struct declaration 
> to affect its contents.

That's true for the other function attributes, but `@safe:` 
actually does penetrate scopes


More information about the Digitalmars-d-learn mailing list