C `restrict` keyword in D
Uknown via Digitalmars-d
digitalmars-d at puremagic.com
Sun Sep 3 21:28:06 PDT 2017
On Monday, 4 September 2017 at 04:10:44 UTC, Moritz Maxeiner
wrote:
> What I meant (and apparently poorly expressed) is that you can
> turn a pointer into a reference (as long as it's not null) and
> taking the address of a "ref" yields a pointer and as in my
> `foo` example in the above, which path is taken can change at
> runtime. You can, e.g. generate a reference to an object's
> member without the compiler being able to detect it by
> calculating the appropriate pointer and then dereferencing it.
I think I understand now. Thanks!
More information about the Digitalmars-d
mailing list