Callout to DMD hackers
Andrej Mitrovic
andrej.mitrovich at gmail.com
Sat Mar 8 07:47:08 PST 2014
On 3/8/14, Suliman <evermind at live.ru> wrote:
> Few years ago I had read that Walter had add some print
> instruction to Phobos, that allow to do print without importing
> std.stdio; It was needed to debugging phobos.
>
> Maybe it's not proper thread, but maybe someone of D hackers
> remember it, because I can't remember how it was done.
Not sure, but you can always do the following to e.g. avoid doing any imports:
-----
extern(C) int printf(in char* format, ...);
void main()
{
printf("hello\n");
}
-----
More information about the Digitalmars-d
mailing list