[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] easyffi usage
From: |
felix winkelmann |
Subject: |
Re: [Chicken-users] easyffi usage |
Date: |
Wed, 9 Jul 2008 12:29:16 +0200 |
On Tue, Jul 8, 2008 at 1:46 PM, William Xu <address@hidden> wrote:
>
> Also, the first example at http://chicken.wiki.br/easyffi#usage seems
> not very good:
>
> 1) Both math.h and csi have defined "sin" function, one can't verify
> that he'd call "sin" from which.
>
> 2) It defined "#define my_pi 3.14" first, but the call "(print (sin 3.14))"
> doesn't use my_pi at all. So i doubt the following clam that it'll
> generated this equivalent code:
>
> (define-foreign-variable my_pi float "my_pi")
Thanks, William. I'll fix the examples.
cheers,
felix