RE: mistake in definition of CFile?
25 Jan
2005
25 Jan
'05
9:52 p.m.
On 22 January 2005 23:53, John Meacham wrote:
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 its 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)
The latter, I think. Cheers, Simon
7942
Age (days ago)
7942
Last active (days ago)
0 comments
1 participants
participants (1)
-
Simon Marlow