mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-15 17:33:38 +00:00
This fixes a serious issue as `try' goals are not properly written to .opt files, so when read back would not actually catch any exceptions. Bug #420. At the point where we are to create the .opt file, the pieces of a `try' goal exist in a "pre-transformed" hlds_goal. Teasing apart the pieces to resemble the original `try' goal would be non-trivial. compiler/intermod.m: Do not export any predicate or function with a clause containing a `try' goal. library/exception.m Throw an exception if the dummy predicate `magic_exception_result/1' is ever called. tests/hard_coded/Mercury.options: tests/hard_coded/Mmakefile: tests/hard_coded/intermod_try_goal.exp: tests/hard_coded/intermod_try_goal.m: tests/hard_coded/intermod_try_goal2.m: Add test case. NEWS: Announce change.
3 lines
35 B
Plaintext
3 lines
35 B
Plaintext
caught exception: "catch me"
|
|
done.
|