unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: John Cowan <cowan@ccil.org>
To: guile-user <guile-user@gnu.org>
Subject: Re: Self-evaluating function and closure
Date: Sat, 15 Jun 2019 15:35:47 -0400	[thread overview]
Message-ID: <CAD2gp_S=Q5dnnjWJNRTVk2PU6UVp8PybEcMh9QRptRqhoy6sYw@mail.gmail.com> (raw)
In-Reply-To: <20190612202929.GA20126@newvzh.lokolhoz>

On Sat, Jun 15, 2019 at 4:31 AM Vladimir Zhbanov <vzhbanov@gmail.com> wrote:

The result is unexpected for me, I expected a new self-evaluating
> procedure every time I run the function-generator procedure (and
> it works differently with Guile 2.0, IIUC, cannot check just now).
>

I tested this on Chicken, Biwa, and Chbi, and all agree on producing new
closures that are not eq?.  So I'd call it a bug in either Guile or
the Scheme standard, but probably in Guile.


> AFAICS, Guile creates a toplevel procedure "a" while it should not
> do so.
>

I am not able to reproduce this on Guile 2.2.4.  Try restarting
Guile and doing just the commands above and see if it persists.


John Cowan          http://vrici.lojban.org/~cowan        cowan@ccil.org
The whole of Gaul is quartered into three halves.
        --Julius Caesar


  reply	other threads:[~2019-06-15 19:35 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-12 20:29 Self-evaluating function and closure Vladimir Zhbanov
2019-06-15 19:35 ` John Cowan [this message]
2019-06-16  0:39   ` Mark H Weaver
2019-06-16  0:36 ` Mark H Weaver
2019-06-16  9:02   ` Vladimir Zhbanov
2019-06-16 10:09     ` Mark H Weaver
2019-06-17  8:03       ` Vladimir Zhbanov
2019-06-16  9:47 ` Mark H Weaver
2019-06-16 10:21   ` Thomas Morley
2019-06-16 10:32     ` Mark H Weaver
2019-06-16 10:42       ` Thomas Morley
2019-06-16 11:29 ` Mark H Weaver
2019-06-17  8:48   ` Vladimir Zhbanov
2019-06-17 14:21     ` Mark H Weaver

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='CAD2gp_S=Q5dnnjWJNRTVk2PU6UVp8PybEcMh9QRptRqhoy6sYw@mail.gmail.com' \
    --to=cowan@ccil.org \
    --cc=guile-user@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).