Files
mercury/tests/debugger/implied_instance.exp
Simon Taylor 5544aed7ff Change the list constructor from ./2' to [|]/2'. `./2' will
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.
2001-09-25 09:37:12 +00:00

47 lines
1.8 KiB
Plaintext

1: 1 1 CALL pred implied_instance:main/2-0 (det) implied_instance.m:25
mdb> echo on
Command echo enabled.
mdb> register --quiet
mdb> context none
Contexts will not be printed.
mdb> alias P print *
P => print *
mdb> goto 2
2: 2 2 CALL pred implied_instance:p/2-0 (det)
mdb> P
HeadVar__1 2
mdb>
3: 3 3 CALL pred implied_instance:ClassMethod_for_implied_instance__sumable____int__arity0______implied_instance__p_2/2-0 (det)
mdb> P
HeadVar__1 2
mdb> break -e p
0: + stop entry pred implied_instance:p/2-0 (det)
mdb> continue -a
4: 4 4 CALL pred implied_instance:copy_int/2-0 (det)
5: 4 4 EXIT pred implied_instance:copy_int/2-0 (det)
6: 3 3 EXIT pred implied_instance:ClassMethod_for_implied_instance__sumable____int__arity0______implied_instance__p_2/2-0 (det)
7: 2 2 EXIT pred implied_instance:p/2-0 (det)
8: 5 2 CALL pred implied_instance:p/2-0 (det)
mdb> P
HeadVar__1 [42, 24, 1, 2, 3]
mdb>
9: 6 3 CALL pred implied_instance:ClassMethod_for_implied_instance__sumable____list__list__arity1______implied_instance__p_2/2-0 (det)
mdb> P
HeadVar__1 [42, 24, 1, 2, 3]
mdb>
10: 7 4 CALL pred implied_instance:sum_int_list/2-0 (det)
mdb> P
HeadVar__1 [42, 24, 1, 2, 3]
mdb> continue -a
11: 7 4 SWTC pred implied_instance:sum_int_list/2-0 (det) s2;
12: 8 5 CALL pred implied_instance:p/2-0 (det)
mdb> P
HeadVar__1 42
mdb>
13: 9 6 CALL pred implied_instance:ClassMethod_for_implied_instance__sumable____int__arity0______implied_instance__p_2/2-0 (det)
mdb> P
HeadVar__1 42
mdb> continue -S
2
72