[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
>
>
--
http://redhog.org
GPG Public key: http://redhog.org/PGP%20Public%20key.asc
Hi! I'm a .signature virus! Copy me into your ~/.signature to help me spread!
- defined?, Egil Moeller, 2003/01/12
- Re: defined?, Matt Hellige, 2003/01/12
- Re: defined?,
Egil Moeller <=
- Re: defined?, Matt Hellige, 2003/01/13
- Re: defined?, Marius Vollmer, 2003/01/13
- Re: defined?, Mikael Djurfeldt, 2003/01/13
- Re: defined?, Egil Moeller, 2003/01/13
- Re: defined?, Marius Vollmer, 2003/01/13
Re: defined?, Mikael Djurfeldt, 2003/01/13