Re: Accessing elements in foreign array of structs
"Erik Ronström (as erik dot ronstrom at doremir dot com)" <[email protected]> Tue, 14 Apr 2026 09:00:58 +0200
| Newsgroups | gmane.lisp.lispworks.general |
|---|---|
| Message-ID | <[email protected]> |
Thanks, now I know! Erik Den 2026-04-13 kl. 17:26, skrev Martin Simmons: > Sorry, the FLI doesn't have the equivalent of the points[index].x syntax in C, > mixing slot and array access, so you have to make a pointer to each struct > somehow like in Julian's code. > > The only small improvement I can offer is to use > > (with-coerced-pointer (current) points ...) > > instead of > > (let ((current (copy-pointer points))) ...) > > to make the pointer object have dynamic extent. > _______________________________________________ Lisp Hug - the mailing list for LispWorks users [email protected] http://www.lispworks.com/support/lisp-hug.html