On 2006-maj-13, at 20:01, hbabcockos1@mac.com wrote:
(t (:default "libc")))
[vs]
(t (:or "libc" "libc.so.6")))
[...]
the second example appears to the naive (like me) to be a super-set of the first example.
You want: (:or (:default "libc") "libc.so.6)
Also: (define-foreign-library libc (:unix (:or "libc.so.6")) (t (:default "libc"))) (use-foreign-library libc)
Doesn't work since OS-X is unix, but not linux. Maybe after failing on the specific case (i.e. unix), it could fall back to the general case?
I suppose falling back to other clauses in a COND-like fashion wouldn't hurt.