This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
Bug with letrec???
- To: guile-bug at gno dot org, guile at sourceware dot cygnus dot com
- Subject: Bug with letrec???
- From: Norbert Preining <preining at logic dot at>
- Date: Mon, 20 Mar 2000 09:20:38 +0100
Hi!
Am I wrong but:
[norbert: ~] guile
guile> (version)
"1.3.4"
guile> (letrec ((a 1) (b 2) (c (+ a b))) c)
ERROR: While evaluating arguments to + in expression (+ a b):
ERROR: Unbound variable: a
ABORT: (misc-error)
Type "(backtrace)" to get more information.
guile> (quit)
[norbert: ~]
it seems that letrec is not working correct?! I thought this is the
standard behaviour according to RnRS? What is the difference between
letrec and let in this case?
Thanks for any hints/ideas.
Norbert
PS: Please CC: to me from the mail-list, I am not subscribed
--
ciao
norb
+-------------------------------------------------------------------+
| Norbert Preining http://www.logic.at/people/preining |
| University of Technology Vienna, Austria preining@logic.at |
| DSA: 0x09C5B094 (RSA: 0xCF1FA165) mail subject: get [DSA|RSA]-key |
+-------------------------------------------------------------------+
PGP signature