chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] how to declare foreign variably size structs?


From: Felix
Subject: Re: [Chicken-users] how to declare foreign variably size structs?
Date: Sat, 22 Jun 2013 22:47:02 +0200 (CEST)

From: Geoffrey <address@hidden>
Subject: Re: [Chicken-users] how to declare foreign variably size structs?
Date: Sat, 22 Jun 2013 21:09:14 +1000

> Thanks db05.
> 
> So far i think the best technique is to use the SDL egg (which i think
> Mario pointed me at) as a reference. I believe it basically creates a
> blob and casts to the struct so the fields can be accessed.
> 
> Honestly at the moment, simply writing it in C looks more
> intelligible.

And doing so is not always the worst solution. Sometimes it is more
straightforward to pieces of glue-code which themselves are usually
much easier to bind.


cheers,
felix



reply via email to

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