
13 Jan
2006
13 Jan
'06
6:51 a.m.
Luís Oliveira <luismbo@gmail.com> writes:
Does anyone have an example where some sort of defcfun-varargs could actually be useful?
This could be useful for the Objective-C bridge: ;; Just tossing out ideas about syntax here... (defcfun ("objc_msgSend" send) id (object id) (method selector) &rest) (send (find-objc-class "NSString") "stringWithUTF8String:" (:string :encoding :utf-8) "hi") I think this could be pretty cool (modulo the arguments *rimshot* about the portability of calling varargs functions through FFI, of course..) James