On Tue, Jun 16, 2009 at 10:48:19AM -0300, Maurício wrote:
It's not usual, but it is allowed to have values of
structs passed between functions directly instead of
using pointers:
/*/
struct ex {
int x;
int y;
int z;
};
ex example_functions (ex p)
{
(...)
}
On Tue, Jun 16, 2009 at 10:48:19AM -0300, Maurício wrote:
/*/
struct ex {
int x;
int y;
int z;
};
ex example_functions (ex p)
{
(...)
}
/*/
You may adopt the approach I used with Hipmunk[1] where there is
a wrapper library written in C. For your example you
It's not usual, but it is allowed to have values of
structs passed between functions directly instead of
using pointers:
/*/
struct ex {
int x;
int y;
int z;
};
ex example_functions (ex p)
{
(...)
}
/*/
Would it be possible to allow that in Haskell FFI
by, say, allowing