[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 08:24:29 PST 2014


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

Steven Schveighoffer <schveiguy at yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |schveiguy at yahoo.com

--- Comment #4 from Steven Schveighoffer <schveiguy at yahoo.com> ---
(In reply to Dicebot from comment #3)

> However I don't like compilation failure here either. extern(C) functions
> must comply to C ABI and thus pass static arrays by pointer even if normal D
> functions do that by value.

Wouldn't ref work? It seems to work for me.

-Steve

--


More information about the Digitalmars-d-bugs mailing list