[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:23:22 PST 2014


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

--- Comment #7 from Dicebot <public at dicebot.lv> ---
The fact that `ref` parameters are allowed for extern(C) functions is even more
bizzare than the fact that static array arguments crash programs. Need to check
if it works, I would have never guessed to even try it.

In general we have "looks like C, works like C" slogan. My point is that this
is especially important with function _explicitly_ marked as "should work like
C" - any mismatch between extern(C) ABI and real C ABI is an important bug.

--


More information about the Digitalmars-d-bugs mailing list