![](https://secure.gravatar.com/avatar/2489e1bbb7b21422d28f3cec3192257f.jpg?s=120&d=mm&r=g)
10 Sep
2008
10 Sep
'08
6:22 p.m.
Hello, cffi-devel! I have found a case when cffi behaves not as documented. The documentation in page for define-foreign-library says about load-clauses list that "Finally, if feature is t, this load-clause is picked unconditionally." But the load-clause with feature set to T is ignored, because function %foreign-library-spec uses alexandria:featurep, which does consider T to be feature. This patch should fix this: to return the load-clause that has feature set to T. Test case: (define-foreign-library libgraphan-wrap (t (:default "libgraphan-wrap"))) (equal (%foreign-library-spec (get-foreign-library 'libgraphan-wrap)) (t (:default "libgraphan-wrap"))) => T