mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-19 11:23:46 +00:00
Estimated hours taken: 3 Allow a predicate to have matching `cc' and `non-cc' modes. compiler/det_analysis.m: If there is a call to a cc procedure in a non-cc context, then search for a mode of that predicate which is identical to the called mode except that it is not cc. If such a mode is found, use it, rather than reporting an error. compiler/modecheck_call.m: Add predicate modes_are_identical_bar_cc, for use by det_analysis.m. NEWS: LIMITATIONS: doc/reference_manual.texi: Document the new feature and delete documentation about the lack of this feature. tests/hard_coded/Mmakefile: tests/hard_coded/cc_and_non_cc_test.m: tests/hard_coded/cc_and_non_cc_test.exp: Add a test case for the new feature.
5 lines
14 B
Plaintext
5 lines
14 B
Plaintext
42
|
|
yes
|
|
42
|
|
yes
|