Arseniy Prosvirnin
Arseniy Prosvirnin

Reputation: 127

How to store lispbuilder-sdl:colors in a list?

I trying to store two colors in list:

(defparameter *colist* '(sdl:*black* sdl:*red*))

Printing sdl:color will return color in sbcl console

(print sdl:*black*) ;;#<LISPBUILDER-SDL:COLOR {1001E980A3}> 

But if I try to print color from list I got different result

(print (car *colist*)) ;;LISPBUILDER-SDL:*BLACK* 

How can I get from list?

Upvotes: 0

Views: 50

Answers (1)

Arseniy Prosvirnin
Arseniy Prosvirnin

Reputation: 127

As mentioned in first comment it is necessarily to use (list a b c) form.

Upvotes: 1

Related Questions