[cffi-devel] Inline expansions for pointer operations

Luís Oliveira luismbo at gmail.com
Wed Apr 28 22:48:42 UTC 2010


On Mon, Apr 26, 2010 at 8:11 AM, Juan Jose Garcia-Ripoll
<juanjose.garciaripoll at googlemail.com> wrote:
>> One advantage of the previous definition is that passing non-pointers
>> to POINTER-EQ would (I assume) signal an error. What do you think?
>
> If this is the intended behavior in all platforms then I will have to think
> about something else for the inline expansion as well -- is it ok if the
> error check is removed for low safety settings?

Yes, I would say so. This is sort of stuff that the CFFI-SYS spec
should be careful about but isn't yet. I've just added a handful of
tests for this sort of stuff.

-- 
Luís Oliveira
http://r42.eu/~luis/




More information about the cffi-devel mailing list