<zulu.inuoe>

You'd need to remember to free it later, yes So if you don't want that, then yes, you need to copy. Hence why for the use-case of:

  1. allocate a chunk of memory
  2. give it to foreigners to populate
  3. copy into cl managed array
  4. free memory chunk

is better suited by cffi stuff

static-vectors is for the usage of

  1. allocate a CL array
  2. pass a pointer to it to C
  3. get data back from C and fiddle with it as a CL array
  4. pass it back to C

<phoe>

is the low level opengl function that expects a pointer to a foreign array to write to Can't you give it a pointer to your static array? Or is that buffer located elsewhere in memory?

my reasoning is: if the opengl function expects a pointer, give it a pointer that belongs to a Lisp static array