On 7/8/07, Alex Queiroz <[EMAIL PROTECTED]> wrote:
On 7/8/07, Martin DeMello <[EMAIL PROTECTED]> wrote: > Is there any way to do this? > > (define str "hello") > (foreign-lambda* int ((int x)) str) >(define str "Hello") (define my-func (let ((foreign (foreign-lambda* int ((int x) (c-string str)) "do stuff with x and str..."))) (lambda (x) (foreign x str))))
No, I don't want to pass str into the foreign function, i want str to *be* the foreign function. That is, I want to use a variable rather than an explicit string, or a macro that generates and inserts a string into the right place. martin _______________________________________________ Chicken-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/chicken-users
