The Data.Array.* hierarchy is unsafe (or, Segfaulting for fun and profit)

Nils Anders Danielsson nad at cs.chalmers.se
Wed Dec 6 05:16:50 EST 2006


On Wed, 06 Dec 2006, "Samuel Bronson" <naesten at gmail.com> wrote:

> But, will you ever encounter such overflows in using an array? I
> suppose you might if you tried to make one larger than the address
> space...

Are you assuming that Ints can always be used to address the entire
address space? Ints are only guaranteed to have 30 bits.

-- 
/NAD



More information about the Libraries mailing list