Andy Wingo <[EMAIL PROTECTED]> 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?

    Neil



Reply via email to