Timon Gehr:

> As to 
> source-level compatibility, the only "guarantee" that Ds design gives is 
> that C code will either compile as D code with identical semantics or 
> not compile at all.

In practice there are few differences, try to compile this in C and D, swapping 
the import/include:

import core.stdc.stdio;
//#include "stdio.h"
float a[1];
void foo(float v[1]) {
    v[0]++;
}
int main() {
    foo(a);
    printf("%f\n", a[0]);
    return 0;
}

Bye,
bearophile

Reply via email to