C `restrict` keyword in D

Dukc via Digitalmars-d digitalmars-d at puremagic.com
Mon Sep 4 07:28:14 PDT 2017


On Sunday, 3 September 2017 at 03:04:58 UTC, Uknown wrote:
> In C, the `restrict` keyword implies that 2 or more pointer 
> arguments in a function call do not point to the same data.

I really don't see where the restrict keyword is needed at all, 
neither in C nor in D. If you want to imply to the compiler that 
there is no need to reload the pointed data between uses, just 
assign it to a local.




More information about the Digitalmars-d mailing list