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
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to