Files
mercury/tests/debugger/multi_parameter.exp
Zoltan Somogyi 58e612321c Change the scheme we use to form the name of the predicate we introduce
Estimated hours taken: 1
Branches: main

compiler/check_typeclass.m:
	Change the scheme we use to form the name of the predicate we introduce
	for typeclass methods to make it reversible, i.e. to allow a demangler
	to use the predicate name to find out the names of the class, the
	method, and the instance types *unambiguously*; The old scheme was
	ambiguous.

	Also change the prefix used by the scheme to something more relevant.

tests/debugger/*.exp:
	Update the names of method predicates in the expected outputs of the
	tests using typeclasses.
2001-07-03 02:49:26 +00:00

46 lines
1.7 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 *
HeadVar__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: 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>
6: 3 3 EXIT pred multi_parameter:a/2-0 (det)
(from multi_parameter.m:32)
mdb> print *
HeadVar__1 'z'
HeadVar__2 122
mdb>
7: 2 2 EXIT pred multi_parameter:foo/2-0 (det)
multi_parameter.m:32 (from multi_parameter.m:24)
mdb> print *
HeadVar__1 'z'
HeadVar__2 122
mdb>
122
8: 1 1 EXIT pred multi_parameter:main/2-0 (det)
multi_parameter.m:23
mdb> print *
HeadVar__2 state('<<c_pointer>>')
mdb> continue -S