« Return to Thread: vectors in pwgl

vectors in pwgl

by marco_d :: Rate this Message:

Reply to Author | View in Thread

hallo list

i have a question concerning lisp-programming in pwgl:

if i use a list of vectors (used in a lisp-code-box with (in-package :cl-user) )
i have some problems accessing this data.

for example in cl:
-------------
(setf vec '#((a 1) (b 2) (b 3) (a 4))))
(type-of vec) ;=> (simple-vector 4)
(svref vec 0) ;=> (a 1)
(type-of (first (svref vec 0))) ;=> symbol
(equal 'a (first (svref vec 0))) ;=> t
-------------

in pwgl i can lookup the symbol as well, but it appears as something like:

(svref vec 0)
                                PWGL-> (common-lisp-user::a 1)

(what does this mean )
then equal is not working because of some reasons i can't figure out...

maybe somebody can help me
i hope my question is not too stupied - i just started to work with lisp/pwgl

thanks a lot
marco

 « Return to Thread: vectors in pwgl