[Haskell-cafe] Error in array index.
bulat.ziganshin at gmail.com
Wed Jun 24 13:48:37 EDT 2009
Wednesday, June 24, 2009, 8:50:49 PM, you wrote:
>> Aren't you asking for a 4G element array here, so with a 32bit
>> wraparound the array will be some multiple of 4GB
> It's a bit array. It'd be 512MiB.
internally it's indexed by plain Int :)
when library checks index boundary, it finds out that your array
contains 0 elements, so any index should be illegal :)
try to work via unsafe indexing operations... although anyway you will
be unable to specify 4G elements array in 32-bit environment
Bulat mailto:Bulat.Ziganshin at gmail.com
More information about the Haskell-Cafe