* typo/bug in guile-bf08e10/doc/ref/api-control.texi
@ 2010-09-03 21:47 ebuy
2010-09-04 17:02 ` Andy Wingo
0 siblings, 1 reply; 2+ messages in thread
From: ebuy @ 2010-09-03 21:47 UTC (permalink / raw)
To: bug-guile
[-- Attachment #1: Type: text/plain, Size: 482 bytes --]
Hi,
maybe I'm wrong, but I consider the order "(PROC CONT)" in the
documentation of the procedure
"call-with-current-continuation"
in file guile-bf08e10/doc/ref/api-control.texi of the git-repository a
bug
Shouldn't that be transposed? "(CONT PROC)" ?
I originally found this studying the documentation of my current 1.8.7
release of guile and wondered, if its still present in the development
branch.
Bye -
Some Admiring Guile-User and Enlgisch Non-Native speaker:)
[-- Attachment #2: diff-c.txt --]
[-- Type: text/plain, Size: 975 bytes --]
*** api-control.texi.new 2010-09-03 23:09:44.671311883 +0200
--- guile-bf08e10/doc/ref/api-control.texi 2010-09-03 16:23:02.000000000 +0200
***************
*** 488,495 ****
@deffn {Scheme Procedure} call-with-current-continuation proc
@deffnx {Scheme Procedure} call/cc proc
@rnindex call-with-current-continuation
! Capture the current continuation and call @code{(@var{cont} @var{proc})}
! with it. The return value is the value returned by
@var{proc}, or when @code{(@var{cont} @var{value})} is later invoked,
the return is the @var{value} passed.
--- 488,495 ----
@deffn {Scheme Procedure} call-with-current-continuation proc
@deffnx {Scheme Procedure} call/cc proc
@rnindex call-with-current-continuation
! Capture the current continuation and call @code{(@var{proc}
! @var{cont})} with it. The return value is the value returned by
@var{proc}, or when @code{(@var{cont} @var{value})} is later invoked,
the return is the @var{value} passed.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: typo/bug in guile-bf08e10/doc/ref/api-control.texi
2010-09-03 21:47 typo/bug in guile-bf08e10/doc/ref/api-control.texi ebuy
@ 2010-09-04 17:02 ` Andy Wingo
0 siblings, 0 replies; 2+ messages in thread
From: Andy Wingo @ 2010-09-04 17:02 UTC (permalink / raw)
To: ebuy; +Cc: bug-guile
Hi,
On Fri 03 Sep 2010 14:47, ebuy <rtfds@online.de> writes:
> consider the order "(PROC CONT)" in the documentation of the procedure
>
> "call-with-current-continuation"
>
> Shouldn't that be transposed? "(CONT PROC)" ?
Nope! The point is to reify the continuation as a *value*; thus it is
passed as a value to the procedure.
(call/cc foo) = (foo CONT)
Have fun with Guile,
Andy
--
http://wingolog.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-09-04 17:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-03 21:47 typo/bug in guile-bf08e10/doc/ref/api-control.texi ebuy
2010-09-04 17:02 ` Andy Wingo
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).