Structs in arrays
Posted: Wed May 02, 2012 3:58 am
Hey all! Im still a little new to lisp and trying to grasp its power!
I have created a struct here:
And i have an array that is created to store these structs.
If i (vector-push-extend) a struct into this vector (or array), how would i access X in the button struct stored INSIDE the vector?
I have created a struct here:
Code: Select all
(defstruct button X Y W H GRACKON TEXT)
If i (vector-push-extend) a struct into this vector (or array), how would i access X in the button struct stored INSIDE the vector?