logo       

Re: [GHC] #871: compiler bug concerning arrays: msg#00134

lang.haskell.glasgow.bugs

Subject: Re: [GHC] #871: compiler bug concerning arrays

Hello GHC,

Monday, August 21, 2006, 11:42:18 AM, you wrote:

> Prelude Array> listArray (0 , maxBound :: Int) (replicate (2 ^ 22) 0)

array with such bounds can't be build just because its number of
elements is larger than maxInt. it seems that array creation routines
should check this condition and then check that bytes required for
array are not greater than malloc/allocArray#/allocByteArray# can
accept as its parameters



--
Best regards,
Bulat mailto:Bulat.Ziganshin@xxxxxxxxx


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise