C++ Interfacing:'static' array function parameter contradiction

kinke via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Apr 28 11:41:22 PDT 2017


On Friday, 28 April 2017 at 18:07:49 UTC, ParticlePeter wrote:
> Interesting, your example corresponds to my third case, the 
> linker error. I am on Window, building an x64 App, afaik in 
> that case the MS Visual Studio linker is used instead of 
> optilink. Will add your findings to the bug report.

Apparently Microsoft's C++ compiler doesn't mangle `float arg[3]` 
parameters identically to `float* arg`:

void cppSArray(float color[3]) => ?cppSArray@@YAXQEAM at Z
void cppPtr(float* color) => ?cppPtr@@YAXPEAM at Z





More information about the Digitalmars-d-learn mailing list