17 Oct
2002
17 Oct
'02
5 p.m.
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? -- Ashley Yakeley, Seattle WA
18 Oct
18 Oct
8:55 a.m.
Ashley Yakeley <ashley@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 http://www.cse.unsw.edu.au/~chak/haskell/c2hs/docu/c2hs-3.html#ss3.8 Why do all the work yourself when a tool can do it for you? Manuel
8772
Age (days ago)
8773
Last active (days ago)
1 comments
2 participants
participants (2)
-
Ashley Yakeley -
Manuel M T Chakravarty