Prevent self-comparison without taking the address

IchorDev zxinsworld at gmail.com
Thu Jul 25 11:46:29 UTC 2024


On Thursday, 25 July 2024 at 10:50:04 UTC, Dom DiSc wrote:
> ```d
> @safe:
> struct S{
> ```

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.


More information about the Digitalmars-d-learn mailing list