RE: Proposal: Improved error message of "Error in array index"

9 Nov
2005
9 Nov
'05
11:40 a.m.
On 09 November 2005 10:18, Ketil Malde wrote:
Simon Marlow wrote:
Hmm yes, this is indeed rather unhelpful. I can explain why it happens, though. The compiler has lifted out the error case into a top-level binding:
x = error "Error in array index"
Would the compiler be less agressive with this if I turn off optimization? I usually use optimization with profiling as well, but could of course turn it off if it would result in more useful stack backtraces.
Possible... but not guaranteed. I think the simplifier does limited forms of let-floating even without -O. Cheers, Simon
7186
Age (days ago)
7186
Last active (days ago)
0 comments
1 participants
participants (1)
-
Simon Marlow