[gambit-list] res_query in the FFI

Marc Feeley feeley at iro.umontreal.ca
Fri Oct 13 13:04:42 EDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 13-Oct-06, at 12:39 PM, Lang Martin wrote:

> Actually, I'd probably argue that we should do an s-expr C syntax, and
> compile down the FFI stuff. And then make new backends for other
> schemes. And then tell the python folks to kiss it.

That's already builtin!

% gsi
Gambit Version 4.0 beta 20

 > \ for (int i=1; i<=10; i*=2) pp(i);
1
2
4
8
 > '\ for (int i=1; i<=10; i*=2) pp(i);
(six.for (six.define-variable (six.identifier i) int () (six.literal 1))
          (six.x<=y (six.identifier i) (six.literal 10))
          (six.x*=y (six.identifier i) (six.literal 2))
          (six.call (six.identifier pp) (six.identifier i)))

Marc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)

iD8DBQFFL8cu//V9Zc2T/v4RAgiIAJ4w7OkWkwYOGgqw+ZGaZMSdQayFGwCcDu1k
wcudBMZ9SgU7rTyMQvvWfX4=
=V5aN
-----END PGP SIGNATURE-----



More information about the Gambit-list mailing list