Why are commands executing out of order?

FG home at fgda.pl
Sat Feb 2 07:56:19 PST 2013


On 2013-02-02 16:22, Josh wrote:
>> Maybe because of output buffering and you need to add flush?
>
> How do I do that? I've never heard of flush before.

     writeln("..."); stdout.flush();

C also has flush, in the form of fflush(stdout);

> I've never come across Appenders before. Could you please explain them a little
> bit, and what each call in your modified code does?

I'm baffled myself as to why they perform better than normal array 
concatenation. We'll see if some interesting explanation appears.
That's why I changed the topic to "Array concatenation vs. Appender".


More information about the Digitalmars-d-learn mailing list