chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] passing a string to foreign-lambda*


From: Alex Queiroz
Subject: Re: [Chicken-users] passing a string to foreign-lambda*
Date: Sun, 8 Jul 2007 14:50:24 -0300

Hallo,

On 7/8/07, Martin DeMello <address@hidden> 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))))

Cheers,
--
-alex
http://www.ventonegro.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]