C Struct Field Access

Manuel M T Chakravarty chak at cse.unsw.edu.au
Thu Oct 17 20:55:13 EDT 2002

Ashley Yakeley <ashley at semantic.org> wrote,

> What's the best strategy for accessing fields in someone else's C struct? 
> Should I write my own glue file with accessor functions? Or should I make 
> a Storable instance for the struct?

Well, my answer to this is the same as to Antony's C enum
question.  Specifically, see


Why do all the work yourself when a tool can do it for you?


More information about the FFI mailing list