chicken-users
[Top][All Lists]
Advanced

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

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


From: Kristian Lein-Mathisen
Subject: [Chicken-users] foreign: Why is passing structs as arguments and return-types not supported?
Date: Wed, 29 Feb 2012 14:07:01 +0100



Hi guys!

Reading the chicken docs on foreign, you'll find:

Structs cannot be directly passed as arguments to foreign functions, nor can they be result values. (http://api.call-cc.org/doc/foreign/types#def:struct)

Pointers to structs are supported, but not structs-by-value. I am wondering if there are technical reason why this is the case, or if it's simply a "missing feature". If it simply hasn't been implemented, I will see if I can make this feature.


Thank you,
K. 

reply via email to

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