unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* guile -c "(scheme-report-environment 5)" ==> ERROR: Unbound variable: scheme-report-environment
@ 2008-03-13 17:45 Marijn Schouten (hkBst)
  2008-03-17 23:30 ` Neil Jerram
  0 siblings, 1 reply; 3+ messages in thread
From: Marijn Schouten (hkBst) @ 2008-03-13 17:45 UTC (permalink / raw)
  To: guile-bugs

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

Hi list,

Using guile-1.8.4 I get:

$ guile -c "(scheme-report-environment 5)"
ERROR: Unbound variable: scheme-report-environment

but also:

$ guile
guile> (scheme-report-environment 5)
#<interface (ice-9 r5rs) 2b312d45dc80>
guile> (eval '(* 2 3) (scheme-report-environment 5))
6
guile>


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.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFH2Wgvp/VmCx0OL2wRAgyBAJ9kBBI0v8LN3SwJd7l0ayelZ5WybgCgvDar
XVhHeiAwCYnfhMswk6PgusA=
=ytkw
-----END PGP SIGNATURE-----




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

* Re: guile -c "(scheme-report-environment 5)" ==> ERROR: Unbound variable: scheme-report-environment
  2008-03-13 17:45 guile -c "(scheme-report-environment 5)" ==> ERROR: Unbound variable: scheme-report-environment Marijn Schouten (hkBst)
@ 2008-03-17 23:30 ` Neil Jerram
  2008-03-18  7:40   ` Marijn Schouten (hkBst)
  0 siblings, 1 reply; 3+ messages in thread
From: Neil Jerram @ 2008-03-17 23:30 UTC (permalink / raw)
  To: Marijn Schouten (hkBst); +Cc: guile-bugs

"Marijn Schouten (hkBst)" <hkBst@gentoo.org> writes:

> Hi list,
>
> Using guile-1.8.4 I get:
>
> $ guile -c "(scheme-report-environment 5)"
> ERROR: Unbound variable: scheme-report-environment
>
> but also:
>
> $ guile
> guile> (scheme-report-environment 5)
> #<interface (ice-9 r5rs) 2b312d45dc80>
> guile> (eval '(* 2 3) (scheme-report-environment 5))
> 6
> guile>

Hi Marijn,

This just reflects that "guile -c" doesn't preload the (ice-9 r5rs)
module (and the same is true of "guile -s"), whereas the guile REPL
does.

Is this a practical problem for you?  It can be worked around by
something like this:

neil@arudy:~$ guile -c "(begin (use-modules (ice-9 r5rs)) (write (scheme-report-environment 5)) (newline))"
#<interface (ice-9 r5rs) b7c71e40>

Regards,
        Neil





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

* Re: guile -c "(scheme-report-environment 5)" ==> ERROR: Unbound variable: scheme-report-environment
  2008-03-17 23:30 ` Neil Jerram
@ 2008-03-18  7:40   ` Marijn Schouten (hkBst)
  0 siblings, 0 replies; 3+ messages in thread
From: Marijn Schouten (hkBst) @ 2008-03-18  7:40 UTC (permalink / raw)
  To: Neil Jerram; +Cc: guile-bugs

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

Neil Jerram wrote:
| "Marijn Schouten (hkBst)" <hkBst@gentoo.org> writes:
|
|> Hi list,
|>
|> Using guile-1.8.4 I get:
|>
|> $ guile -c "(scheme-report-environment 5)"
|> ERROR: Unbound variable: scheme-report-environment
|>
|> but also:
|>
|> $ guile
|> guile> (scheme-report-environment 5)
|> #<interface (ice-9 r5rs) 2b312d45dc80>
|> guile> (eval '(* 2 3) (scheme-report-environment 5))
|> 6
|> guile>
|
| Hi Marijn,
|
| This just reflects that "guile -c" doesn't preload the (ice-9 r5rs)
| module (and the same is true of "guile -s"), whereas the guile REPL
| does.

I see.

| Is this a practical problem for you?

No, I was just under the impression that the methods were identical.

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.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFH33Hip/VmCx0OL2wRAm1XAKC4Ji/D7tEeYR/CUluPuPdhymw+CQCgyC6H
a0smeLzXllQ/PDMhcJxmwN4=
=VWsV
-----END PGP SIGNATURE-----




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

end of thread, other threads:[~2008-03-18  7:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-13 17:45 guile -c "(scheme-report-environment 5)" ==> ERROR: Unbound variable: scheme-report-environment Marijn Schouten (hkBst)
2008-03-17 23:30 ` Neil Jerram
2008-03-18  7:40   ` Marijn Schouten (hkBst)

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