[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-users] Re: easyffi usage
From: |
William Xu |
Subject: |
[Chicken-users] Re: easyffi usage |
Date: |
Tue, 08 Jul 2008 22:33:28 +0900 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.2.50 (darwin) |
Thomas Chust <address@hidden> writes:
> if I'm not mistaken, easyffi generates parameter style procedures to acces
> global C variables, probably because it is impossible in CHICKEN to create
> "magic" Scheme variables that map directly to C variables.
>
> Therefore the correct way to use my_pi in your example would be
>
> (print (sin (my_pi)))
Hm, this seems hiding the error. Now, my_pi is 0.0,
...
(use format-modular)
(display (format "(my_pi) = ~A, (sin (my_pi)) = ~A\n" (my_pi) (sin (my_pi))))
=>
(my_pi) = 0.0, (sin (my_pi)) = 0.0
--
William
http://williamxu.net9.org