[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: member-type error



Mark Müller asks:
> > (defstruct test
>   (trigger 'a :type (member 'a 'b))
>   )
> 
> TEST
> > (make-test)
> 
> *** - THE: TRIGGER evaluated to the values (A), not of type (MEMBER 'A
> 'B)
> 1. Break> 
> 
> what am i'm doing wrong?

The parts of the type specifier `(member ...)' are not evaluated.
You have to write

           (member a b)

instead of

           (member 'a 'b)


Bruno Haible                                     email: <haible@ilog.fr>
Software Engineer                                phone: +33-1-49083585