From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nikita Karetnikov Newsgroups: gmane.lisp.guile.bugs Subject: bug#14164: 'letrec' allows to refer to the values of previously bound variables Date: Tue, 09 Apr 2013 08:41:04 +0400 Message-ID: <877gkcuxi7.fsf@karetnikov.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1365482371 30105 80.91.229.3 (9 Apr 2013 04:39:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Apr 2013 04:39:31 +0000 (UTC) To: 14164@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Tue Apr 09 06:39:35 2013 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UPQLH-0002u0-1a for guile-bugs@m.gmane.org; Tue, 09 Apr 2013 06:39:35 +0200 Original-Received: from localhost ([::1]:55147 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPQLG-0004AW-Lu for guile-bugs@m.gmane.org; Tue, 09 Apr 2013 00:39:34 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53446) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPQLB-00049Z-UF for bug-guile@gnu.org; Tue, 09 Apr 2013 00:39:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UPQL9-0007ll-4P for bug-guile@gnu.org; Tue, 09 Apr 2013 00:39:29 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36918) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPQL9-0007lh-1U for bug-guile@gnu.org; Tue, 09 Apr 2013 00:39:27 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UPQOc-0005qu-IK for bug-guile@gnu.org; Tue, 09 Apr 2013 00:43:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Nikita Karetnikov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-guile@gnu.org Resent-Date: Tue, 09 Apr 2013 04:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 14164 X-GNU-PR-Package: guile X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-guile@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.136548253522425 (code B ref -1); Tue, 09 Apr 2013 04:43:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 9 Apr 2013 04:42:15 +0000 Original-Received: from localhost ([127.0.0.1]:41026 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UPQNr-0005pe-H0 for submit@debbugs.gnu.org; Tue, 09 Apr 2013 00:42:15 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41945) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UPQNn-0005pV-6z for submit@debbugs.gnu.org; Tue, 09 Apr 2013 00:42:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UPQKG-0007NB-Nn for submit@debbugs.gnu.org; Tue, 09 Apr 2013 00:38:35 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:36484) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPQKG-0007N7-L5 for submit@debbugs.gnu.org; Tue, 09 Apr 2013 00:38:32 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53281) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPQKD-0003zp-1u for bug-guile@gnu.org; Tue, 09 Apr 2013 00:38:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UPQKA-0007MK-NG for bug-guile@gnu.org; Tue, 09 Apr 2013 00:38:28 -0400 Original-Received: from li305-5.members.linode.com ([178.79.168.5]:41263 helo=cooksoni.karetnikov.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPQKA-0007MB-Hf for bug-guile@gnu.org; Tue, 09 Apr 2013 00:38:26 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:7077 Archived-At: --=-=-= According to the manual [1], this snippet: (letrec ((a 42) (b (+ a 10))) (* a b)) should return "Error: unbound variable: a." But it returns 2184 in Guile 2.0.7. Either there is a bug in the manual or 'letrec' doesn't work properly. [1] https://gnu.org/software/guile/manual/guile.html#Local-Bindings --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQIcBAEBAgAGBQJRY5vkAAoJEM+IQzI9IQ381UkP/jjarFroZE8xdeYYsrPTaqjn onCQPyNDLwmKGsonPv7h+NtWzGV4hab6hWtNnqSL6t6YyOPBAJmkYXKR/MXAtlB2 MpEZE05LvF74EDyWTn7CYvHN2KH2Gr2ufqKbJRr+pSh1xDv2swTtoUxTkICR65zb U+45U8o+aWSNqbDpsIHHMaoyVTEZpqLcHwHMSI/vvaUwbnfTQ9vdjE8Ma/aqOoOz qhzlHQ+VpBQ5p5hbsWgceQnycOkCutIP1kuAVK04Bn3PqnpKcebE0LDAymEWgFak qNlYJgLwLOUCDz90fRSyz6V/Tuzqlbftpzijdh9syBifXUTscHCbP1oRB6XM6kVZ Q5PLPT0upxZoxcaSZ1jEO7FW8aNp7vWWylVH4NXTDJsiPoh7kVmPpc3BiKOjrcFk abf9Gk8ojCFd/WCVZ7gHxA+hFRCFbgyG5QmYIBAGRXjr6Va2kJBDCnF5pagU9bws N9vbnmFkshj8uY2H0nFnaiGzOcTgwoZ89MjmBNFj9XTIJuu5f6p04w2fcH7xaILb aEVW1IWZuKtugVf+/Sv9w3XHpDvTrshe3hq8LIHXnT0hvY9pBUiWmrq97gGpG8bA SjGVeTTSD/Y6ojSRk3cO6+Rn2WdPM1U2zZaeTpyujGig5j4Utc7nOigka945oasz P5IMbntWlPXdnvyku9jd =793m -----END PGP SIGNATURE----- --=-=-=--