[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: eval question: where is my mistake ?
From: |
David Pirotte |
Subject: |
Re: eval question: where is my mistake ? |
Date: |
Fri, 01 Jun 2001 01:23:35 +0200 |
Martin Grabmueller wrote:
>
> ...
>
> I'm not sure what you are doing here, but it seems that you are using
> a symbol in a place where you actually want a keyword.
>
> You are creating three variables, holding the _symbols_ <test> test-1
> and #:test. Note that the last one is a symbol, even though it looks
> like a keyword. For illustration, try the following after entering
> your definitions above:
>
> guile> slots
> ((test-1 #:accessor test-1 #:init-keyword #:test-1 #:init-value #f))
> guile> (list-ref (car slots) 4)
> #:test-1
> guile> (keyword? (list-ref (car slots) 4))
> #f
> guile> (symbol? (list-ref (car slots) 4))
> #t
>
> Maybe you should replace the third line above with
>
> (define slot-kw #:test-1)
>
Thanks a lot,
Marius also ansewred and it now works like a charm, so thanks
to both of you
David