* undocumented function repl
@ 2006-07-29 2:49 Jon Wilson
2006-07-30 9:25 ` Neil Jerram
0 siblings, 1 reply; 4+ messages in thread
From: Jon Wilson @ 2006-07-29 2:49 UTC (permalink / raw)
Hi y'all,
I just ran across the function 'repl' ( #<procedure repl (read evaler
print)>), which doesn't have a docstring, and doesn't appear in the manual
(well, ok fine, the procedure index of the manual). I'm using 1.8.
I tried calling it as:
(repl read primitive-eval display)
but that didn't seem to give very meaningful results. It certainly didn't
act like the normal guile repl. Perhaps I just gave it the wrong
arguments, though.
Does this function produce a normal repl? If so, how? If not, then what
does it do? Also, perhaps we should either not export it, or else document
it in the manual. I would volunteer to document it, but clearly, I don't
understand it.
Regards,
Jon
_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: undocumented function repl
2006-07-29 2:49 undocumented function repl Jon Wilson
@ 2006-07-30 9:25 ` Neil Jerram
2006-07-30 16:29 ` Jon Wilson
0 siblings, 1 reply; 4+ messages in thread
From: Neil Jerram @ 2006-07-30 9:25 UTC (permalink / raw)
Cc: guile-user
Jon Wilson <j85wilson@fastmail.fm> writes:
> Hi y'all,
> I just ran across the function 'repl' ( #<procedure repl (read evaler
> print)>), which doesn't have a docstring, and doesn't appear in the
> manual (well, ok fine, the procedure index of the manual). I'm using
> 1.8.
>
> Does this function produce a normal repl? If so, how? If not, then
> what does it do? Also, perhaps we should either not export it, or
> else document it in the manual. I would volunteer to document it, but
> clearly, I don't understand it.
I would say that it shouldn't be exported. It's just a part of the
implementation of top-repl.
--
Regards,
Neil
_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: undocumented function repl
2006-07-30 9:25 ` Neil Jerram
@ 2006-07-30 16:29 ` Jon Wilson
2006-08-01 23:22 ` Kevin Ryde
0 siblings, 1 reply; 4+ messages in thread
From: Jon Wilson @ 2006-07-30 16:29 UTC (permalink / raw)
Hi Neil,
Neil Jerram wrote:
> Jon Wilson <j85wilson@fastmail.fm> writes:
>
>
>>Hi y'all,
>>I just ran across the function 'repl' ( #<procedure repl (read evaler
>>print)>), which doesn't have a docstring, and doesn't appear in the
>>manual (well, ok fine, the procedure index of the manual). I'm using
>>1.8.
>>
>
>
>>Does this function produce a normal repl? If so, how? If not, then
>>what does it do? Also, perhaps we should either not export it, or
>>else document it in the manual. I would volunteer to document it, but
>>clearly, I don't understand it.
>
>
> I would say that it shouldn't be exported. It's just a part of the
> implementation of top-repl.
>
Sounds good. Should top-repl be documented in the manual and/or with a
docstring? It is not in the procedure index, which I presume to mean it is
not in the manual. I've read the entire 1.6 manual, but not the 1.8
manual, so I don't know for sure that it isn't documented. Its purpose is
fairly obvious, but its existence was unknown to me until just now. It
also doesn't seem to appear in the index to R5RS.
There seem to be a number of repl related procedures that are exported.
Should all of them be available? (Obviously some of the procedures
returned by (apropos "repl") are not repl related, like string-replace...
I've removed them.)
guile> (apropos "repl")
(guile): repl #<procedure repl (read evaler print)>
(guile): scm-style-repl #<procedure scm-style-repl ()>
(guile): repl-reader #<procedure #f (prompt)>
(guile): error-catching-repl #<procedure error-catching-repl (r e p)>
(guile): set-repl-prompt! #<procedure set-repl-prompt! (v)>
(guile): scm-repl-prompt
(guile): assert-repl-verbosity #<procedure assert-repl-verbosity (v)>
(guile): scm-repl-verbose
(guile): assert-repl-print-unspecified #<procedure
assert-repl-print-unspecified (v)>
(guile): top-repl #<procedure top-repl ()>
(guile): scm-repl-print-unspecified
(guile): assert-repl-silence #<procedure assert-repl-silence (v)>
(guile): scm-repl-silent
Regards,
Jon
_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: undocumented function repl
2006-07-30 16:29 ` Jon Wilson
@ 2006-08-01 23:22 ` Kevin Ryde
0 siblings, 0 replies; 4+ messages in thread
From: Kevin Ryde @ 2006-08-01 23:22 UTC (permalink / raw)
Cc: guile-user
Jon Wilson <j85wilson@fastmail.fm> writes:
>
> There seem to be a number of repl related procedures that are
> exported. Should all of them be available?
Probably not. There's a fair bit of stuff in boot-9 that ought to
either made private or documented.
_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-08-01 23:22 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-29 2:49 undocumented function repl Jon Wilson
2006-07-30 9:25 ` Neil Jerram
2006-07-30 16:29 ` Jon Wilson
2006-08-01 23:22 ` Kevin Ryde
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).