e.g. mydll.d:
import core.sys.windows.windows; import core.sys.windows.dll;extern (C) export int foo(ref int a[10],ref int b[10],ref int c[10])
{
for(int i=0;i<10;i++)
{
c[10]=a[10]-b[10];
}
return 0;
}
mixin SimpleDllMain;
test.c:
How to write in both static and dynamic mode?
