D perfomance

IGotD- nise at nise.com
Wed Apr 29 10:36:59 UTC 2020


On Wednesday, 29 April 2020 at 10:32:33 UTC, random wrote:
>
> A competent C Programmer could just write something like this. 
> Or use restrict...
>
> int test(int* x, int* y) {
>     int result = *x = 0;
>     *y = 1;
>     return result;
> }
>

I'm incompetent so I would just write:

int test(int* x, int* y) {
      *x = 0;
      *y = 1;
      return 0;
}


More information about the Digitalmars-d mailing list