Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Ticket #1797 (closed defect: invalid)

Opened 3 years ago

Last modified 3 years ago

Stdout.flush is broken with LDC (64bit)

Reported by: mwarning Assigned to: fawzi
Priority: major Milestone: 0.99.9
Component: Tango Version: 0.99.8 Sean
Keywords: Cc: larsivi

Description

.flush is broken for LDC trunk. .newline instead of .flush works.

System is 64bit Debian.

import tango.core.Thread;
import tango.io.Stdout;


void main() {
    for(auto i = 0; i < 10; ++i)
    {
        Stdout('.').flush;
        Thread.sleep(0.2);
    }
}

LDC prints all dots at once when the program exits. DMD prints a dot every 0.2 second.

Change History

11/22/09 22:18:16 changed by kris

  • cc set to larsivi.
  • owner changed from kris to fawzi.

Tango simply does a flush() on exit also, so I suspect there's something else going on here?

Maybe fawzi has some idea?

11/22/09 22:19:56 changed by kris

btw, newline() calls flush() too ...

11/24/09 10:03:52 changed by mwarning

  • status changed from new to closed.
  • resolution set to invalid.

Sorry, my install was broken. No Idea what have happened. Works now.