guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: String syntax changed?


From: Paul Jarc
Subject: Re: String syntax changed?
Date: Tue, 24 Feb 2004 17:19:54 -0500
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (gnu/linux)

Marius Vollmer <address@hidden> wrote:
> address@hidden (Paul Jarc) writes:
>> I think we would want to consume data all the way through to the
>> newline.  (Not because it is a newline, but because that's how much
>> data has been flushed through the tty driver, and is available to
>> read() without blocking.)
>
> Yes, maybe that the best we can do... could you try this out?

Well, it looks to me like it would go into boot-9.scm, in
error-catching-loop/error-catching-repl.  To make things tidy,
error-catching-loop could take an extra procedure argument that gets
called in the case of an exception, and error-catching-repl could pass
such a procedure that consumes any available input in the case of
'read-error.  Or, if error-catching-loop isn't used anywhere else, the
consumption could go directly in there.  What do you think?


paul




reply via email to

[Prev in Thread] Current Thread [Next in Thread]