[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: eval question: where is my mistake ?
From: |
Marius Vollmer |
Subject: |
Re: eval question: where is my mistake ? |
Date: |
31 May 2001 01:08:30 +0200 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.0.102 |
David Pirotte <address@hidden> writes:
> where is my mistake ?
>
>
> (define clname (string->symbol "<test>"))
> (define slot (string->symbol "test-1"))
> (define slot-kw (string->symbol "#:test-1"))
Here. `slot-kw' is not a keyword, it is a symbol. Everything
returned from `string->symbol' is a symbol, even if it has a strange
name.
Normally, symbols with strange names are printed in a special way, but
we forgot to do that for symbols that would be read as a keyword.
Also, keywords with funny names wouldn't print right. This is fixed
in CVS now.
You need to use
(define slot-kw (symbol->keyword (string->symbol "#:test-1")))