retitle 451707 D should send foo[] as a foo* when used in a variadic argument in extern(C) context severity 451707 important thanks
I understood the issue: when the "-c" argument is sent as the first argument of the variadic part, D sends a char[] and not a char*, meaning that it puts 2, "-c" on the stack, which confuses the C. I believe that D should do the implicit cast in that case, as it'll break a _lot_ of programs using C APIs and variadic arguments in very subtle ways. -- ·O· Pierre Habouzit ··O [EMAIL PROTECTED] OOO http://www.madism.org
pgpO9HlrPDjpk.pgp
Description: PGP signature