[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 09:26:36 PST 2014
    
    
  
https://issues.dlang.org/show_bug.cgi?id=8887
--- Comment #6 from bearophile_hugs at eml.cc ---
(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.
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.
--
    
    
More information about the Digitalmars-d-bugs
mailing list