two-dimensional C array and its analog in D

bearophile bearophileHUGS at lycos.com
Wed Aug 8 02:29:56 PDT 2012


> That C code doesn't look correct, because the given data 
> contains no pointers.

But this C code compiles:


void foo(const void** data) {}
int data[2][3];
int main() {
   foo(data);
   return 0;
}

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list