chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] foreign: Why is passing structs as arguments and ret


From: Alaric Snell-Pym
Subject: Re: [Chicken-users] foreign: Why is passing structs as arguments and return-types not supported?
Date: Wed, 29 Feb 2012 16:35:24 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110617 Thunderbird/3.1.11

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

On 02/29/2012 03:18 PM, Kristian Lein-Mathisen wrote:

> Since struct-by-value is so central in both of these libraries, manually
> writing wrapper-code would take too long. I am unsure of where to go from
> here, but I suppose my options are:
>
> - Modify `foreign` to support struct-by-value
> - Modify `chicken-bind` to automatically write wrapper-code for
> struct-by-value
> - Write a script that re-parses the generated scheme-binding and inserts
> the wrappers

> Any thoughts on how to pursue this?

I would think that the first option is slightly neater, as it would then
apply to users of foreign other than via chicken-bind, but it might be
easier to do in chicken-bind! The last option looks ugly.


ABS

- --
Alaric Snell-Pym
http://www.snell-pym.org.uk/alaric/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk9OU8wACgkQRgz/WHNxCGrkdQCcDmKaG/yaXUzrIejXupDQ34zX
y+MAn2eyLzmMwE+Swah/xbIH1NfH0S4W
=gqMq
-----END PGP SIGNATURE-----



reply via email to

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