
21 Nov
2006
21 Nov
'06
7:54 a.m.
Bulat Ziganshin wrote:
Hello Simon,
Monday, November 20, 2006, 3:44:16 PM, you wrote:
implemented as a sequence of bytes either; indeed the Hugs implementation doesn't represent a UArray using unboxed elements.
really? :)
data UArray i e = UArray !i !i !ByteArray
data ByteArray = ByteArray !Int !BytePtr
type BytePtr = ForeignPtr Word8
Hugs implementation actually works via Storable class, and i duplicated this in my own ArrayRef lib (only for Hugs, of course)
Ok, I misremembered - thanks for the clarification. Cheers, SImon