This is the mail archive of the guile@sourceware.cygnus.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Bug with letrec???


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]