Pointer aliasing in D (Was: Programming language benchmarks)

Walter Bright newshound2 at digitalmars.com
Thu Apr 28 13:35:30 PDT 2011


On 4/28/2011 11:44 AM, Jens Mueller wrote:
> Thanks. So if a compiler can assume that pointers do not alias it can
> generate much better code. What's D's standpoint on that matter then?
> C99 has restrict. I never came across something similar in D.

Const and immutable.



More information about the Digitalmars-d mailing list