mistake in definition of CFile?
John Meacham <[email protected]> Sat, 22 Jan 2005 15:53:08 -0800
| Newsgroups | gmane.comp.lang.haskell.ffi |
|---|---|
| Message-ID | <[email protected]> |
The FFI spec says (in section 6.2) that CFile represents the C type
'FILE' and has Eq and Storable instances.
Is this a mistake? FILE is opaque and AFAIK, you can't copy or compare it=
s
contents and expect it to work. I can think of two possible
interpretations:
* the table should say CFile is equivalant to 'FILE *'.
* One is meant to use 'Ptr CFile' and no Eq or Storable instances should
exist for CFile. (it is opaque)=20
John
=20
--=20
John Meacham - =E2=91=86repetae.net=E2=91=86john=E2=91=88=20