Passing static arrays to C

Andrej Mitrovic andrej.mitrovich at gmail.com
Wed Oct 24 15:01:06 PDT 2012


On 10/24/12, bearophile <bearophileHUGS at lycos.com> wrote:
> Andrej Mitrovic:
>
> The issue you have opened is:
> http://d.puremagic.com/issues/show_bug.cgi?id=8887

And pull https://github.com/D-Programming-Language/dmd/pull/1215

> The implementation of D associative arrays is opaque, so why is
> this allowed?
>
> extern(C) void foo(int[int] aa);
> void main() {}

Well this is less dangerous than the OP case, but maybe it should be
disallowed. Another bug should be opened for this.


More information about the Digitalmars-d mailing list