On Wednesday, 2 February 2022 at 11:46:47 UTC, bauss wrote:
>On Wednesday, 2 February 2022 at 10:53:56 UTC, forkit wrote:
>On Wednesday, 2 February 2022 at 09:27:02 UTC, duser wrote:
>missing extern(C)
, it should be:
module test;
import core.stdc.stdio : FILE, fprintf;
extern(C) extern shared FILE* stderr;
extern(C) int main(string[] args)
{
fprintf(stderr, "Test\n",);
return 0;
}
pls.. not more 'extern's ... I'm seeing 'extern' everywhere now...
..I'm gunna puke if I see another one.
and no, that doesn't work either :-(
extern(C) should imply extern in my book. I'm not sure if it does, but it seems wrong if it doesn't.
Shouldn't extern
imply extern(D)
for D?
In C, extern
implies extern "C"
In C++, extern
implies extern "C++"
Why different behaviour for D?