[Issue 8887] static arrays passed by value in extern C/C++ functions should not compile

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Nov 7 11:33:23 PST 2014


https://issues.dlang.org/show_bug.cgi?id=8887

--- Comment #9 from bearophile_hugs at eml.cc ---
(In reply to Dicebot from comment #8)

> There is no special case here - extern(C) by definition must implement C ABI
> of argument passing. It is simply out of D language domain ones arguments
> are passed.

D fixed-size arrays are values. C language lacks those values, so I think D
doesn't have a C ABI to respect.

--


More information about the Digitalmars-d-bugs mailing list