unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* bug#14164: 'letrec' allows to refer to the values of previously bound variables
@ 2013-04-09  4:41 Nikita Karetnikov
  2013-04-09  5:14 ` bug#14164: letrec: detect illegal accesses to vars before entering body Mark H Weaver
  0 siblings, 1 reply; 7+ messages in thread
From: Nikita Karetnikov @ 2013-04-09  4:41 UTC (permalink / raw)
  To: 14164

[-- Attachment #1: Type: text/plain, Size: 317 bytes --]

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

[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-04-12  8:43 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-09  4:41 bug#14164: 'letrec' allows to refer to the values of previously bound variables Nikita Karetnikov
2013-04-09  5:14 ` bug#14164: letrec: detect illegal accesses to vars before entering body Mark H Weaver
2013-04-09  6:37   ` Nikita Karetnikov
2013-04-09 16:44     ` Mark H Weaver
2013-04-09 17:22       ` Nikita Karetnikov
2013-04-10  9:25         ` Mark H Weaver
2013-04-12  8:43           ` Ludovic Courtès

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).