mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-23 13:23:47 +00:00
Estimated hours taken: 3
Branches: main
Change the list constructor from `./2' to `[|]/2'. `./2' will
eventually become the module qualification operator.
library/parser.m:
library/io.m:
library/sparse_bitset.m:
library/std_util.m:
library/term_io.m:
compiler/mercury_to_mercury.m:
compiler/prog_io_dcg.m:
compiler/prog_io_goal.m:
compiler/prog_io_pragma.m:
compiler/prog_io_typeclass.m:
compiler/prog_io_util.m:
browser/interactive_query.m:
extras/moose/grammar.m:
extras/moose/moose.m:
extras/morphine/source/generate_call_site_cov.m:
extras/xml/xml.encoding.m:
samples/muz/higher_order.m:
tests/debugger/declarative/app.m:
tests/dppd/transpose_impl.m:
tests/hard_coded/ground_dd.m:
tests/hard_coded/split_c_files.m:
Change all references to `./2' to use `[|]/2' instead.
compiler/typecheck.m:
Handle `./2' as a special case in `report_error_undef_cons'.
Warn about module list not being imported if `[|]/2' is undefined.
compiler/llds_out.m:
util/mdemangle.c:
profiler/demangle.m:
Add name conversions for `[|]' (f_cons) and `[]' (f_nil).
NEWS:
doc/reference_manual.texi:
w3/tutorial/lists-n-things.m4:
Document the changes.
tests/debugger/{,declarative}/*.exp*:
Update test case results. For some tests the output changed
because they output lists in the non-pretty format. For others,
the output changed because the alphabetical ordering of the
constructors of type `list/1' changed, so the numbering of
the switch branches in the goal paths changed.
43 lines
1.1 KiB
Plaintext
43 lines
1.1 KiB
Plaintext
1: 1 1 CALL pred exception_value:main/2-0 (cc_multi) exception_value.m:12
|
|
mdb> echo on
|
|
Command echo enabled.
|
|
mdb> register --quiet
|
|
mdb> break p
|
|
0: + stop interface pred exception_value:p/1-0 (det)
|
|
mdb> break q
|
|
1: + stop interface pred exception_value:q/1-0 (det)
|
|
mdb> continue
|
|
3: 3 3 CALL pred exception_value:p/1-0 (det) exception_value.m:30
|
|
mdb> finish
|
|
4: 3 3 EXCP pred exception_value:p/1-0 (det)
|
|
mdb> print exception
|
|
"p exception"
|
|
mdb> continue
|
|
mdb: warning: reached unknown label
|
|
This may result in some exception events
|
|
being omitted from the trace.
|
|
exception(univ_cons("p exception"))
|
|
7: 5 3 CALL pred exception_value:q/1-0 (det) exception_value.m:35
|
|
mdb> finish
|
|
8: 5 3 EXCP pred exception_value:q/1-0 (det)
|
|
mdb> browse exception
|
|
browser> set depth 9
|
|
browser> set size 99
|
|
browser> ls
|
|
-
|
|
1-"q oops"
|
|
2-[|]
|
|
1-1
|
|
2-[|]
|
|
1-2
|
|
2-[|]
|
|
1-3
|
|
2-[]
|
|
|
|
browser> quit
|
|
mdb> continue
|
|
mdb: warning: reached unknown label
|
|
This may result in some exception events
|
|
being omitted from the trace.
|
|
exception(univ_cons("q oops" - [1, 2, 3]))
|