bug-guile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: letrec bug


From: Marijn Schouten (hkBst)
Subject: Re: letrec bug
Date: Thu, 30 Oct 2008 16:31:58 +0100
User-agent: Thunderbird 2.0.0.17 (X11/20081002)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Bill Schottstaedt wrote:
> I read those same paragraphs and interpreted them differently,
> but now I agree with you.

For your infotainment:

invoke.scm -e "(let ((x 1)) (letrec ((x 32) (y x)) y))"
Bigloo (3.1b)
#unspecified
CHICKEN 3.3.0
32
Elk 3.99.7
32
Gambit v4.1.0
#!unbound
Gauche scheme interpreter, version 0.8.13 [utf-8,pthreads]
32
Guile 1.8.5
ERROR: Variable used before given a value: x

ikarus is unavailable
kawa is unavailable
larceny is unavailable
MIT/GNU Scheme 7.7.90.+

;Premature reference to reserved name: x
;To continue, call RESTART with an option number:
; (RESTART 1) => Return to read-eval-print level 1.

2 error>
End of input stream reached.
Welcome to MzScheme v4.1 [3m], Copyright (c) 2004-2008 PLT Scheme Inc.
32
RScheme 0.7.3.4-b7u
value := 32

scheme48 1.8

Error: LETREC variable used before its value has been produced
Schoca Shell (Version 0.3.0-cvs) by Christoph Bauer

schoca> ==> #unspecified
schoca>
scm 5e4
Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996 Free Software Foundation, Inc.
SCM may be distributed under the terms of the GNU General Public Licence;
certain other uses are permitted as well. For details, see the file `COPYING',
which is included in the SCM distribution.
There is no warranty, to the extent permitted by law.
 This executable was loaded from "/usr/bin/scm"
32
sigscheme 0.8.3
sscm> 1
sscm>
sisc is unavailable
stklos (version 0.98)
#f
TinyScheme 1.39
> 1
>

cheers,

Marijn

- --
Marijn Schouten (hkBst), Gentoo Lisp project, Gentoo ML
<http://www.gentoo.org/proj/en/lisp/>, #gentoo-{lisp,ml} on FreeNode
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkkJ020ACgkQp/VmCx0OL2wXIgCfd5sFqoZ9qQkdzI+m6+qTfPE/
TPwAn23CPCTIp9qYuqNmOHLBVkPM1m0Z
=fbTc
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]