[Haskell-cafe] Haskell Propeganda
Daniel Fischer
daniel.is.fischer at web.de
Sat Aug 23 18:15:57 EDT 2008
Am Samstag, 23. August 2008 23:17 schrieb Thomas Davie:
>
> I'd be interested to see your other examples -- because that error is
> not happening in Haskell! You can't argue that Haskell doesn't give
> you no segfaults, because you can embed a C segfault within Haskell.
>
> Bob
Use ST(U)Arrays, and use unsafeWrite because you do the indexchecking
yourself. Then be stupid and confuse two bounds so that you actually write
beyond the array bounds.
I've had that happen _once_.
But if you explicitly say you want it unsafe, you're prepared for it :)
Daniel
More information about the Haskell-Cafe
mailing list