From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Carl Witty Newsgroups: gmane.lisp.guile.devel Subject: Re: How do I really do this? Date: 10 Mar 2004 14:21:18 -0800 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <1078957278.13435.4.camel@flare> References: <40466FAF.3A286BB0@veritas.com> <85hdx2rwyr.fsf@ossau.uklinux.net> <404A0DD0.C024CC4@veritas.com> <85ad2tkg9j.fsf@ossau.uklinux.net> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1079056532 8239 80.91.224.253 (12 Mar 2004 01:55:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 12 Mar 2004 01:55:32 +0000 (UTC) Cc: Bruce Korb , guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Fri Mar 12 02:55:23 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 1B1btT-0001F8-00 for ; Fri, 12 Mar 2004 02:55:23 +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 1B1bfr-0002DY-4g for guile-devel@m.gmane.org; Thu, 11 Mar 2004 20:41:19 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1B1C7k-0004LS-5B for guile-devel@gnu.org; Wed, 10 Mar 2004 17:24:24 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1B1C6s-00038H-Un for guile-devel@gnu.org; Wed, 10 Mar 2004 17:24:03 -0500 Original-Received: from [216.254.46.113] (helo=gemini.newtonlabs.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.30) id 1B1C6s-00033f-3K for guile-devel@gnu.org; Wed, 10 Mar 2004 17:23:30 -0500 Original-Received: from dhcp-154.newtonlabs.com (dhcp-154.newtonlabs.com [10.254.0.154]) by gemini.newtonlabs.com (8.12.3/8.12.3/Debian-6.6) with ESMTP id i2AMNKXT024016; Wed, 10 Mar 2004 14:23:20 -0800 Original-To: Neil Jerram In-Reply-To: <85ad2tkg9j.fsf@ossau.uklinux.net> X-Mailer: Ximian Evolution 1.4.3 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:3509 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:3509 On Sat, 2004-03-06 at 10:00, Neil Jerram wrote: > Bruce Korb writes: > > OK. This works: > > > > (define sym-name (value-function)) > > > > So, why doesn't this: > > > > (define (string->symbol "sym-name") (val-func)) > > Because this is the syntax for defining a procedure, and needs to be > one of: > > (define (string->symbol) ...) > (define (string->symbol ARG1 ...) ...) > (define (string->symbol . ARGS) ...) > > where all the ARGs must be symbols (not strings). > > Also, string->symbol is already defined, so why are you trying to > redefine it? > > Perhaps you're not trying to redefine it? In which case, I still > don't understand what you are trying to do. I think he's trying to get at something more like (eval `(define ,(string->symbol "sym-name") ,(val-func))) (Bruce, hopefully this will help you get an answer to your question. I'd answer it myself, but it's been too long since I've dealt with Scheme or Guile...) Carl Witty _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel