[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>

Andreas Rottmann         | address@hidden      | address@hidden | address@hidden      | GnuPG Key:
Fingerprint              | DFB4 4EB4 78A4 5EEE 6219  F228 F92F CFC5 01FD 5B62

Say NO to Software Patents! --

reply via email to

[Prev in Thread] Current Thread [Next in Thread]