On Tue, 2 Jul 2013 12:16:07 +0200
Juan Jose Garcia-Ripoll <juanjose.garciarip...@gmail.com> wrote:

> * Declaration of C variables
> 
> (let ((a (cos 1.0))
>   (declare (:double a))
>   ...)
> 
> * Direct references to C variables
> 
> (ffi:c-inline (a b) (:double :double) :void
>    "#0 = cos(#1)")
> 
> * Embed imperative lisp in C (syntax not yet decided)
> 
> (let ((a 0))
>    (declare (:int a))
>    (ffi:c-progn (a) ; one or more variables
>      "for (#0 = 1; #0 < 10; #0++) {"
>      (print a)
>      "}"))

I'll surely experiment with these new features eventually as I have
more time, they seem interesting :)

Hmm so in the case of "Direct references to C variables", both a and b
are assumed to have been especially declared as in the last example,
with something similar to (let ((a 0.0) (b 3.3)) (declare (type :double
a b)) ... ?

Thanks,
-- 
Matt

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Ecls-list mailing list
Ecls-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecls-list

Reply via email to