unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
From: Jan Synacek <jsynacek@redhat.com>
To: 41353@debbugs.gnu.org
Subject: bug#41353: (thunk? (const 1))
Date: Sun, 17 May 2020 16:46:40 +0200	[thread overview]
Message-ID: <CAPsXM8X0ub1uxS_fuToQtqkgH3_BMi__1v3=hX=Te1m_5R0Myw@mail.gmail.com> (raw)
In-Reply-To: <87wo5ay7pp.fsf@fencepost.gnu.org>

On Sun, May 17, 2020 at 4:09 PM David Kastrup <dak@gnu.org> 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 OBJ can serve as a thunk—a procedure called without arguments."
>
> Note that (thunk? (lambda x x)) also returns #t and that ((const 1))
> returns 1.

But both (lambda x ...) and (const whatever) are still a procedure that accepts
an argument, aren't they? My understanding of thunk is (lambda () ...),
because that's a procedure that takes zero arguments.






  reply	other threads:[~2020-05-17 14:46 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-17 10:41 bug#41353: (const x) is a thunk Jan Synacek
2020-05-17 14:08 ` bug#41353: (thunk? (const 1)) David Kastrup
2020-05-17 14:46   ` Jan Synacek [this message]
2020-05-17 15:31     ` lloda
2020-05-27 20:50   ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAPsXM8X0ub1uxS_fuToQtqkgH3_BMi__1v3=hX=Te1m_5R0Myw@mail.gmail.com' \
    --to=jsynacek@redhat.com \
    --cc=41353@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).