![](https://secure.gravatar.com/avatar/f3826f09cda5af90d95b7df1268825b1.jpg?s=120&d=mm&r=g)
16 Aug
2009
16 Aug
'09
4:14 p.m.
Hi, Is there a way to make mem-aref work with CL's complex numbers? I don't need anything else from CFFI (no complex function arguments, return types, etc), just mem-aref, eg something like (mem-aref ptr :complex-float 11) (setf (mem-aref ptr :complex-float 12) #C(1s0 2s0)) with complex numbers stored as per the C99 standard (basically, two single or double floats next to each other) and the offset properly calculated. Doing this would allow me to dispose of some ugly workaround code. Thanks, Tamas