From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Christopher Cramer Newsgroups: gmane.lisp.guile.user Subject: Re: How do I really do this? Date: Tue, 9 Mar 2004 19:13:17 -0600 Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Message-ID: <20040309191317.A13443@kiwi.pyrotechnics.com> References: <40466FAF.3A286BB0@veritas.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1079037390 3636 80.91.224.253 (11 Mar 2004 20:36:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 11 Mar 2004 20:36:30 +0000 (UTC) Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Thu Mar 11 21:36:19 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1B1Wuh-0005bl-00 for ; Thu, 11 Mar 2004 21:36:19 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B1WuR-0004xx-1J for guile-user@m.gmane.org; Thu, 11 Mar 2004 15:36:03 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1B0sHp-00034n-Ak for guile-user@gnu.org; Tue, 09 Mar 2004 20:13:29 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1B0sHG-0002Hn-OQ for guile-user@gnu.org; Tue, 09 Mar 2004 20:13:26 -0500 Original-Received: from [207.7.10.6] (helo=kiwi.pyro.net) by monty-python.gnu.org with smtp (Exim 4.30) id 1B0sHG-0002Fc-1X for guile-user@gnu.org; Tue, 09 Mar 2004 20:12:54 -0500 Original-Received: (qmail 14179 invoked by uid 8610); 10 Mar 2004 01:13:17 -0000 Original-To: guile-user@gnu.org Mail-Followup-To: guile-user@gnu.org Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <40466FAF.3A286BB0@veritas.com>; from bkorb@veritas.com on Wed, Mar 03, 2004 at 03:52:15PM -0800 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.user:2921 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:2921 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 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 _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://mail.gnu.org/mailman/listinfo/guile-user