This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Re: Body of `begin' is not evaluated in left-to-right order?
On 15 ÑÐÑ 2006, s11@member.fsf.org wrote:
>> The obvious goal is to write a procedure that displays a line, then
>> waits for some time (3 seconds) and displays another line. When I
>> evaluate `(sleep-example)' in Kawa, it first waits for 3 seconds, and
>> then prints the both lines immediately one after another.
>
> The current output port is buffered. Guile detects whether an output
> port is a terminal when opening; if so, it sets "line buffering" mode.
> You can't portably rely on this feature anyway, so see the
> force-output function to do what you want.
That was it. Thank you!