mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-16 18:03:36 +00:00
Estimated hours taken: 14 Branches: main Change the compiler and tools so that `.' and not `:' is now used as the module separator in all output. Infix `.' now has associativity yfx and priority 10. NEWS: Report the change. configure.in: Amend the test for an up-to-date Mercury compiler to check whether it recognises `.' as a module qualifier. compiler/code_gen.m: compiler/error_util.m: compiler/hlds_out.m: compiler/prog_out.m: compiler/prog_util.m: compiler/rl_exprn.m: compiler/rl_gen.m: compiler/source_file_map.m: compiler/unused_args.m: library/io.m: library/rtti_implementation.m: library/type_desc.m: runtime/mercury_debug.c: runtime/mercury_deconstruct.c: runtime/mercury_stack_trace.c: Change `:' to `.' as module separator for output. compiler/mercury_to_mercury.m: compiler/prog_io_typeclass.m: As above. Fixed a bug where `.' was not being recognised as a module separator. doc/reference_manual.texi: Report the change. library/term_io.m: Ensure that infix `.' is written without surrounding spaces. tests/hard_coded/dot_separator.m: tests/hard_coded/dot_separator.exp: tests/hard_coded/Mmakefile: Test case added.
46 lines
1.6 KiB
Plaintext
46 lines
1.6 KiB
Plaintext
1: 1 1 CALL pred multi_parameter.main/2-0 (det) multi_parameter.m:23
|
|
mdb> echo on
|
|
Command echo enabled.
|
|
mdb> context nextline
|
|
Contexts will be printed on the next line.
|
|
mdb>
|
|
2: 2 2 CALL pred multi_parameter.foo/2-0 (det)
|
|
multi_parameter.m:32 (from multi_parameter.m:24)
|
|
mdb> print *
|
|
X (arg 1) 'z'
|
|
mdb>
|
|
3: 3 3 CALL pred multi_parameter.a/2-0 (det)
|
|
(from multi_parameter.m:32)
|
|
mdb> print *
|
|
HeadVar__1 'z'
|
|
mdb>
|
|
4: 4 4 CALL pred multi_parameter.ClassMethod_for_multi_parameter__m____character__arity0__int__arity0______multi_parameter__a_2/2-0 (det)
|
|
multi_parameter.m:20
|
|
mdb> print *
|
|
HeadVar__1 'z'
|
|
mdb>
|
|
5: 5 5 CALL pred char.to_int/2-0 (det)
|
|
char.m:NNNN (from multi_parameter.m:20)
|
|
mdb> print *
|
|
Character (arg 1) 'z'
|
|
mdb>
|
|
6: 5 5 EXIT pred char.to_int/2-0 (det)
|
|
char.m:NNNN (from multi_parameter.m:20)
|
|
mdb> print *
|
|
Character (arg 1) 'z'
|
|
Int (arg 2) 122
|
|
mdb>
|
|
7: 4 4 EXIT pred multi_parameter.ClassMethod_for_multi_parameter__m____character__arity0__int__arity0______multi_parameter__a_2/2-0 (det)
|
|
multi_parameter.m:20
|
|
mdb> print *
|
|
HeadVar__1 'z'
|
|
HeadVar__2 122
|
|
mdb>
|
|
8: 3 3 EXIT pred multi_parameter.a/2-0 (det)
|
|
(from multi_parameter.m:32)
|
|
mdb> print *
|
|
HeadVar__1 'z'
|
|
HeadVar__2 122
|
|
mdb> continue -S
|
|
122
|