On 3/8/14, Suliman <[email protected]> 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");
}
-----