Tue, 17 Apr 2001 18:05:48 +1000, Manuel M. T. Chakravarty <[EMAIL PROTECTED]> pisze:
> http://www.cse.unsw.edu.au/~chak/haskell/ffi.ps.gz
Some minor points:
In C int can't have 8 bits. It is guaranteed to represent at least
-2^15..2^15.
Your syntax puts modifiers between the calling convention and the
external id. I agree that it's consistent. Currently ghc accepts
unsafe only between the external id and the Haskell id, and dynamic
only instead the external id.
It should not matter that C allows colons in #include. Rules of the
#include argument are implementation dependent, and it should not
be a problem if a programmer can't name a header file included into
Haskell using a colon. He will have to choose a name without a colon.
But we could also cut the last colon instead of the first: a colon
is certainly not valid in a C identifier.
--
__("< Marcin Kowalczyk * [EMAIL PROTECTED] http://qrczak.ids.net.pl/
\__/
^^ SYGNATURA ZASTÊPCZA
QRCZAK
_______________________________________________
FFI mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/ffi