From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: John Cowan Newsgroups: gmane.lisp.guile.user Subject: Re: Self-evaluating function and closure Date: Sat, 15 Jun 2019 15:35:47 -0400 Message-ID: References: <20190612202929.GA20126@newvzh.lokolhoz> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="134646"; mail-complaints-to="usenet@blaine.gmane.org" To: guile-user Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sat Jun 15 21:36:43 2019 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hcETj-000Ypz-4S for guile-user@m.gmane.org; Sat, 15 Jun 2019 21:36:43 +0200 Original-Received: from localhost ([::1]:36130 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hcETh-0003BY-Pj for guile-user@m.gmane.org; Sat, 15 Jun 2019 15:36:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58382) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hcETA-0003Aw-Cf for guile-user@gnu.org; Sat, 15 Jun 2019 15:36:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hcET5-0004EG-7X for guile-user@gnu.org; Sat, 15 Jun 2019 15:36:08 -0400 Original-Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]:33529) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hcET4-0004Ah-Pi for guile-user@gnu.org; Sat, 15 Jun 2019 15:36:03 -0400 Original-Received: by mail-wm1-x330.google.com with SMTP id h19so1699530wme.0 for ; Sat, 15 Jun 2019 12:36:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ccil-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=mTVzbvI7CPtVCeloz1LLL/xHcFe6WFCh/etST52LGio=; b=FOYo4Ayid1LAxV3prhui2hrXeNbhhbJCgoNr9zRDT9F+j5cTViRUhmqextgDbdeL7B 6sqU051cWUTd49Ey3IIPsHKlsl95HZhsg0BKMvFtEIG5poXFKG51qKaALBeoknwjei83 xSoMuwStQtk1qVQVaPx3IGCm1YS7yQh9t6QmxVO402Wl31KYY8eGvWzfNuZCSBwGb/mh U4jYtjTB+yGoMPh4omlmPV2RkIS1Gafuhl0svUH5iTjoWuUjorTevhnCUY/4IZNbouEH 692CIjyX6VzDGXTSRItBDfA4hzzCEwXZ/OTeYQ1lzJ35ubdWLFJZUi/1tob+PE/C5q81 2+dA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=mTVzbvI7CPtVCeloz1LLL/xHcFe6WFCh/etST52LGio=; b=Dyv99USoIEY09MAAXNQylTewjM/NWzsFp/Dc35zxJ9tCJF6uCmfkt8WJCrMxTMiDRC QkLGdYDj0xtakj7wNAMQqIcoP7dezZxWTIhVXy64rf9RTMPlba67HaQLBl8lcWeBIQKo fnhLXOZRMc1Bp35Bka7pLiuec2rYzXi2+0f/nQ3IzKcrJLIdqgH9KFO5ShXbyQxXY8eW 7F+Q6WIOhXoLwQqikpkiwmXyGzvTwg608uFdVh6y6k8R/bGrdyXdqd3ONmC+t908V0rV lcJDBA+YQLOooHvo0O/oXluX9Q0wrN3YkwScHkJsimWOS2oj3TUjN27yL+Yx1FmKU2SK L5PA== X-Gm-Message-State: APjAAAXOv+JgWLh7Sj1RN8ebpJOoDl91Wy9ZclCIXLQzKRotzJ8mQUuc /ka+lGvFkx2s/Gud2g4CxvG+eUx8pS6SoGPaOV658mFg0Mk= X-Google-Smtp-Source: APXvYqyMWPVW9n+NyJNQdhSoO1S7YLG5qdO2fGzkYQM6gmUd15te1vQ54c8hGPpIm0Me6TXvnahVKuErCY9j6e8REio= X-Received: by 2002:a1c:9cd1:: with SMTP id f200mr12047546wme.157.1560627360597; Sat, 15 Jun 2019 12:36:00 -0700 (PDT) In-Reply-To: <20190612202929.GA20126@newvzh.lokolhoz> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::330 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.org gmane.lisp.guile.user:15553 Archived-At: On Sat, Jun 15, 2019 at 4:31 AM Vladimir Zhbanov 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