Re: Accessing elements in foreign array of structs

"Erik Ronström (as erik dot ronstrom at doremir dot com)" <[email protected]> Sun, 12 Apr 2026 21:30:27 +0200
Newsgroups gmane.lisp.lispworks.general
Message-ID <[email protected]>
> Or perhaps you were asking about how to reference a struct slot of a 
> struct element in an array of structs?

That's it! :)


> Doesn’t this work?
>
> (fli:foreign-slot-value (fli:dereference array-ptr :index n) 'slot-name)

No:

Error: Attempted to dereference a pointer to aggregate type (:STRUCT 
WIN-POINT).


Erik