From: Paul K. <pk...@gm...> - 2008-12-09 01:45:44
|
On 8-Dec-08, at 5:33 AM, Nikodemus Siivola wrote: > On Mon, Dec 8, 2008 at 12:49 AM, Liam Healy <ln...@he... > > wrote: > >> My application has a C pointer allocated through CFFI. That's all it >> is, just a pointer. [...] > > Yes, that's one way. Another would be something like this: > > (let* ((pointer (alloc-foo-pointer)) > (addr (pointer-address pointer))) > (finalize pointer (lambda () (foreign-free (make-pointer addr)))) > pointer) I'm told CFFI pointers are just straight SAPs on SBCL. Don't we reserve the right to copy SAPs arbitrarily? Paul Khuong |