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