[Top][All Lists]

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

Re: defined?

From: Egil Moeller
Subject: Re: defined?
Date: Sun, 12 Jan 2003 21:06:20 +0100 (CET)

The problem is

guile> (let ((b 5)) (eval 'b  (interaction-environment)))
<unnamed port>: In expression b:
<unnamed port>: Unbound variable: b
ABORT: (unbound-variable)

On Sun, 12 Jan 2003, Matt Hellige wrote:

> [Egil Moeller <address@hidden>]
> >
> > How does one extract the value of a binding, whose symbol is in a
> > variable one has access to? Guile 1.6 says symbol-binding is deprecated...
> I'm not sure if there's a better way, but this works for me:
>  guile> (define a 5)
>  guile> (define b 'a)
>  guile> (eval b (interaction-environment))
>  5
>  guile>
> Matt

GPG Public key:
Hi! I'm a .signature virus! Copy me into your ~/.signature to help me spread!

reply via email to

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