Closed maranget closed 3 weeks ago
Thanks a lot Luc
This feels a bit obscure why those are different, but this looks very good to me thanks a lot
Hi @HadrienRenaud. Generally, values of monadic type should not be used more than once. Otherwise, it leads to repeated evaluation by the "concurrent" interpreter. The root cause of the problem solved by PR #867 was similar.
Merged, thanks for the review @HadrienRenaud.
Fix for issue #899. Here is an inlined version of the problematic test:
Executing this test with the previous herd7 yields a fatal error due to the duplicated execution of the statement
<S>
from thetry <S> catch
construct.Namely, in the case when no exception is thrown,
<S>
is re-executed unprotected, resulting in an uncaught exception fault. See the first commit for details.