What bothers me about D is that the executables dmd generates are quite large.
Some simple programs have almost 200 kb. I've tried packing them with kkrunchy,
the result are still about 100 kb. By contrast, with Visual C++ such programs
would be only a few kbytes (in release mode). Why is D gene
Of course the line fflush (stdout); must be written before getch(); - then it
works. Great!
Claus D. Volko Wrote:
> Adam D. Ruppe Wrote:
>
> > On Sun, Jan 11, 2009 at 10:15:45AM -0500, Claus D. Volko wrote:
> > > Thanks for your answer. It sounds plausible to m
Adam D. Ruppe Wrote:
> On Sun, Jan 11, 2009 at 10:15:45AM -0500, Claus D. Volko wrote:
> > Thanks for your answer. It sounds plausible to me. Do you know how to
> > manually cause a flush? I've found this code snippet:
>
> fflush(stdout);
>
> That should do
Thanks for your answer. It sounds plausible to me. Do you know how to manually
cause a flush? I've found this code snippet:
import std.cstream;
...
dout.writefln("Hello");
dout.flush();
Using doubt.writef and dout.flush, it works as intended. But can it also be
done without importing std.cstr
Hi,
I'm currently writing a D tutorial for people new to programming, and I've
experienced some strange behavior:
The following program works as intended:
// The "Hello World!" program
import std.stdio;
import std.c.stdio;
void main ()
{
int i;// Variable