[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How do I really do this?
From: |
Christopher Cramer |
Subject: |
Re: How do I really do this? |
Date: |
Tue, 9 Mar 2004 19:13:17 -0600 |
User-agent: |
Mutt/1.2.5i |
On Wed, Mar 03, 2004 at 03:52:15PM -0800, Bruce Korb wrote:
> I've tried:
>
> (define (string->symbol (function-returning-string))
> (value-function))
You need to use eval to do something like this.
guile> (eval `(define ,(string->symbol "foo") 'bar) (current-module))
guile> foo
bar
Not sure why you'd want to avoid explicitly using a hash table. That's
pretty much what define does anyway.
--
Christopher Cramer <address@hidden> <http://www.pyro.net/~crayc/>
In politics you have to understand not where the voters are when a poll
is taken, but where they are likely to end up on Election Day.
-- Rep. Tom Davis, former NRCC Chairman