> On 17 May 2020, at 16:46, Jan Synacek wrote:
>
> On Sun, May 17, 2020 at 4:09 PM David Kastrup wrote:
>> I think this is more a matter of the documentation being not quite right:
>>
>> -- Scheme Procedure: thunk? obj
>> -- C Function: scm_thunk_p (obj)
>> Return ‘#t’ if OBJ is a thunk—
On Sun, May 17, 2020 at 4:09 PM David Kastrup wrote:
> I think this is more a matter of the documentation being not quite right:
>
> -- Scheme Procedure: thunk? obj
> -- C Function: scm_thunk_p (obj)
> Return ‘#t’ if OBJ is a thunk—a procedure that does not accept
> arguments.
>
> "if
I think this is more a matter of the documentation being not quite right:
-- Scheme Procedure: thunk? obj
-- C Function: scm_thunk_p (obj)
Return ‘#t’ if OBJ is a thunk—a procedure that does not accept
arguments.
"if OBJ can serve as a thunk—a procedure called without arguments."
N
From: Jan Synacek
* doc/ref/api-control.texi:
* doc/ref/r6rs.texi:
* doc/ref/sxml.texi: Fix typos.
---
doc/ref/api-control.texi | 4 ++--
doc/ref/r6rs.texi| 2 +-
doc/ref/sxml.texi| 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/doc/ref/api-control.texi b/do
In Scheme, symbols can be compared using eq? for equality. However,
since they have garbage-collected content attached, they do not meet the
predicate SCM_IMP in the short-circuit evaluation at the start of equal?
This means that unequal symbols compared using equal? fall through a
whole bunch o
With guile-3.0.2:
scheme@(guile-user)> (thunk? (const 1))
$1 = #t
Since thunk is a procedure that does not accept arguments (section
6.9.7, documentation for 'thunk?'), the result of the above evaluation
should be #f.
In guile-3.0.2 manual, section 6.9.3 Compiled Procedures, there is:
Compiled procedures, also known as “programs”, respond all procedures
that operate on procedures. In addition, there are a few more accessors
for low-level details on programs.
The first compound sentence doesn't make much sense