[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:25:08 PST 2014
    
    
  
https://issues.dlang.org/show_bug.cgi?id=8887
--- Comment #8 from Dicebot <public at dicebot.lv> ---
(In reply to bearophile_hugs from comment #6)
> I think that a compilation failure is better because it avoids to introduce
> a special case in the D language. Special cases cause problems, even when
> they look a little handy.
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.
--
    
    
More information about the Digitalmars-d-bugs
mailing list