* letrec bug ?!? with guile-1.5.4
@ 2002-03-21 17:17 Sebastien.deMentendeHorne
2002-03-21 17:50 ` Joshua Judson Rosen
2002-03-22 17:19 ` Evan Prodromou
0 siblings, 2 replies; 3+ messages in thread
From: Sebastien.deMentendeHorne @ 2002-03-21 17:17 UTC (permalink / raw)
Hi,
What a strange behaviour for guile-1.5.4 on a Mandrake 8.1 system
(letrec ((a 2) (b (* a 4))) (display b))
=> unbound variable a when evaluating arguments of * in (* a 4)
Any hint ?
Sébastien de Menten | ELECTRABEL
Tel: ++32 10 48 51 76 | Quantitative Analysis,
Fax: ++32 10 48 51 09 | Place de l'université, 16, 4ème étage
Gsm: ++32 478 789 444 | B-1348 Louvain-la-Neuve, BELGIUM
_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-user
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: letrec bug ?!? with guile-1.5.4
2002-03-21 17:17 letrec bug ?!? with guile-1.5.4 Sebastien.deMentendeHorne
@ 2002-03-21 17:50 ` Joshua Judson Rosen
2002-03-22 17:19 ` Evan Prodromou
1 sibling, 0 replies; 3+ messages in thread
From: Joshua Judson Rosen @ 2002-03-21 17:50 UTC (permalink / raw)
Cc: guile-user
On Thu, Mar 21, 2002 at 06:17:54PM +0100, Sebastien.deMentendeHorne@electrabel.com wrote:
> Hi,
>
> What a strange behaviour for guile-1.5.4 on a Mandrake 8.1 system
>
> (letrec ((a 2) (b (* a 4))) (display b))
> => unbound variable a when evaluating arguments of * in (* a 4)
>
> Any hint ?
That's what's supposed to happen--see the section on letrec in r5rs
for a full explanation.
--
M: Does it work?
N: Yes.
M: Did you test it?
N: What do you mean?
_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-user
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: letrec bug ?!? with guile-1.5.4
2002-03-21 17:17 letrec bug ?!? with guile-1.5.4 Sebastien.deMentendeHorne
2002-03-21 17:50 ` Joshua Judson Rosen
@ 2002-03-22 17:19 ` Evan Prodromou
1 sibling, 0 replies; 3+ messages in thread
From: Evan Prodromou @ 2002-03-22 17:19 UTC (permalink / raw)
>>>>> "Sd" == Sebastien deMentendeHorne <Sebastien.deMentendeHorne@electrabel.com> writes:
Sd> Hi, What a strange behaviour for guile-1.5.4 on a Mandrake 8.1
Sd> system
Sd> (letrec ((a 2) (b (* a 4))) (display b)) => unbound variable a
Sd> when evaluating arguments of * in (* a 4)
I think what you want to do here is a (let*), not a (letrec).
~ESP
--
Evan Prodromou
evan@glug.org
_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-user
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-03-22 17:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-03-21 17:17 letrec bug ?!? with guile-1.5.4 Sebastien.deMentendeHorne
2002-03-21 17:50 ` Joshua Judson Rosen
2002-03-22 17:19 ` Evan Prodromou
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).