Strict aliasing in D

Daniel Murphy yebblies at nospamgmail.com
Sun Jan 29 06:05:22 PST 2012


"Denis Shelomovskij" <verylonglogin.reg at gmail.com> wrote in message 
news:jg3f21$1jqa$1 at digitalmars.com...
> It was originally posted to D.learn but there was no reply. So:
>
> Is there a strict aliasing rule in D?
>
> I just saw https://bitbucket.org/goshawk/gdc/changeset/b44331053062

Struct aliasing is required when doing array operations.

eg.
int[] a, b, c;
a[] = b[] + c[];

The arrays used must not overlap.
I'm pretty sure that's what that commit was about. 




More information about the Digitalmars-d mailing list