[Haskell-cafe] Error in array index.

Bulat Ziganshin bulat.ziganshin at gmail.com
Thu Jun 25 04:04:02 EDT 2009


Hello Claus,

Thursday, June 25, 2009, 11:50:12 AM, you wrote:

> PS. You could, of course, rebase your array indices to make
>     use of the negatives, so the address space isn't wasted, just
>     made difficult to use.

no, he can't - internally indexes are always counted from 0, so array
cannot have more than 2g-1 elements

i think the best he can do is to write his own ArraOfBool
implementation with Word indices


-- 
Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com



More information about the Haskell-Cafe mailing list