Thu, 24 Aug 2000 05:36:13 -0700, Simon Marlow <[EMAIL PROTECTED]> pisze:
> Since sizeof returns an Int, and (a `plusAddr` fromIntegral (sizeof
> x)) is guaranteed to advance a to the next element in an array of
> 'x's, why can't we just drop the fromIntegral?
I agree that AddrOff should be replaced by Int.
In C int can be smaller than the maximum object size, e.g. on most
64-bit archs, so size_t and ptrdiff_t make more sense. In Haskell
objects larger than Int are unlikely, and Int is already used by
length etc.
--
__("< Marcin Kowalczyk * [EMAIL PROTECTED] http://qrczak.ids.net.pl/
\__/
^^ SYGNATURA ZASTĘPCZA
QRCZAK