betterC question
Dibyendu Majumdar
d.majumdar at gmail.com
Thu Nov 19 00:07:12 UTC 2020
I have simple test program:
import core.stdc.stdio : printf;
void test() {
int* a;
printf("a == null %d\n", a == null);
}
int function() fp = test;
extern (C) void main() {
fp();
}
Why do I get:
\d\dmd-2.092.1\windows\bin64\dmd.exe -betterC tests.d
tests.d(5): Error: printf cannot be interpreted at compile time,
because it has no available source code
This is on Windows
More information about the Digitalmars-d-learn
mailing list