[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
Sat Nov 8 08:22:07 PST 2014
https://issues.dlang.org/show_bug.cgi?id=8887
--- Comment #17 from Mike Parker <aldacron at gmail.com> ---
(In reply to Dicebot from comment #16)
> I am not proposing to prohibit ref-static-arrays, it would have been too
> much of a breakage indeed. But situation with plain static array arguments
> does sound too error-prone and impractical too keep. Think about it that way
> - because of this issue you can't just take C header and tweak it until it
> compiles as D code - it can still segfault at runtime after.
>
Yes, I see. I got things mixed up. No argument there. That actually was a
problem for me before I realized that ref worked.
--
More information about the Digitalmars-d-bugs
mailing list