[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How do I really do this?
From: |
Andreas Rottmann |
Subject: |
Re: How do I really do this? |
Date: |
Wed, 10 Mar 2004 22:07:19 +0100 |
User-agent: |
Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) |
Neil Jerram <address@hidden> writes:
> Bruce Korb <address@hidden> 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 maybe wants to define a variable named after a
string. </wildguess>
Andy
--
Andreas Rottmann | address@hidden | address@hidden | address@hidden
http://yi.org/rotty | GnuPG Key: http://yi.org/rotty/gpg.asc
Fingerprint | DFB4 4EB4 78A4 5EEE 6219 F228 F92F CFC5 01FD 5B62
Say NO to Software Patents! -- http://petition.eurolinux.org/
Re: How do I really do this?, Mikael Djurfeldt, 2004/03/10
Re: How do I really do this?, Paul Jarc, 2004/03/10