[Top][All Lists]

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

Re: support thunks as prompts without readline

From: Neil Jerram
Subject: Re: support thunks as prompts without readline
Date: Mon, 12 May 2008 21:25:20 +0100
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux)

Andy Wingo <address@hidden> writes:

>>                         (let ((prompt (cond ((string? scm-repl-prompt)
>>                                              scm-repl-prompt)
>>                                             ((thunk? scm-repl-prompt)
>>                                              (scm-repl-prompt))
>>                                             (scm-repl-prompt "> ")
>>                                             (else ""))))
>>                           (repl-reader prompt))))
> Sorry for the long quote. Answer: It does seem that this case is covered
> by the scm-style REPL. I'm trying to use the repl-reader for a different
> repl, the one in guile-vm. The (ice-9 readline) repl-reader does handle
> the prompt-as-thunk case. I just want them both to act the same :)
> I could change to call the thunk instead, if that's the best option.
> Please advise as to what you want to accept.

What about moving the cond above from the caller to inside
repl-reader?  I'd be happy with that, and I think it would meet your
needs, wouldn't it?


reply via email to

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