bug#41353: (thunk? (const 1))

2020-05-17 Thread lloda
> 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

bug#41353: (thunk? (const 1))

2020-05-17 Thread Jan Synacek
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

bug#41353: (thunk? (const 1))

2020-05-17 Thread David Kastrup
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."

bug#41355: [PATCH] Fix typos in the manual

2020-05-17 Thread jsynacek
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

bug#41354: equal? has no sensible code path for symbols

2020-05-17 Thread David Kastrup
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

bug#41353: (const x) is a thunk

2020-05-17 Thread Jan Synacek
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.

bug#41352: incomprehensible paragraph in info pages

2020-05-17 Thread Jan Synacek
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