What are the pointer aliasing rules in D?

Inkrementator invalid at invalid.org
Fri Mar 7 18:33:12 UTC 2025


On Thursday, 6 March 2025 at 10:46:20 UTC, tmp wrote:
> Do the same rules exist in D? If they do, do workarounds exist?

LDC and GDC offer nonstandard extensions to enable optimizations 
regarding non-aliasing pointers with the  @restrict

https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gdc/Common-Attributes.html

https://github.com/ldc-developers/ldc/blob/master/runtime/druntime/src/ldc/attributes.d


More information about the Digitalmars-d-learn mailing list