[Haskell-cafe] Mutable but boxed arrays?
chaddai.fouche at gmail.com
Wed Sep 5 16:01:34 EDT 2007
I'm not sure I understand your point : why would access to a specific
element of the array make all the other elements evaluate (or even
this specific element as long as you don't deconstruct it).
Besides you misunderstood the "box" concept, indeed only primitive
values that fits in 32 bits can be unboxed, all others need to be
boxed anyway, and a box allow lazyness since it can point to a thunk
as well as a WHNF.
More information about the Haskell-Cafe