[cffi-devel] Extending defcfun and friends with extra options

Stelian Ionescu sionescu at common-lisp.net
Tue Jan 30 14:31:02 UTC 2007


On Tue, Jan 30, 2007 at 07:52:37AM +0000, Luís Oliveira wrote:
>Hello,
> ;; #1 -- backwards compatible, similar to defcallback
> (defcfun (foo :opt1 ... :opt2 ...) :rettype
>   (arg1 :type1)
>   (arg2 :type2))
I prefer this syntax since it has the advantage(for readability) that
the options are put at the beginning, making them easy to spot; it is
also the syntax of many CL standard macros(with-open-file,
with-output-to-string ...)

-- 
(sign :name "Stelian Ionescu" :aka "fe[nl]ix"
      :quote "Quidquid latine dictum sit, altum sonatur.")
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/cffi-devel/attachments/20070130/9f189e73/attachment.sig>


More information about the cffi-devel mailing list