[m-dev.] trivial diff: add a comment to modecheck_errors.m

Fergus Henderson fjh at cs.mu.OZ.AU
Thu Jul 8 00:44:51 AEST 1999


Estimated hours taken: 0.25

compiler/mode_errors.m:
	Add a comment, as suggested by dgj's code review.

Workspace: /home/mercury0/fjh/mercury-other
Index: compiler/mode_errors.m
===================================================================
RCS file: /home/mercury1/repository/mercury/compiler/mode_errors.m,v
retrieving revision 1.63
diff -u -r1.63 mode_errors.m
--- mode_errors.m	1999/06/30 17:12:31	1.63
+++ mode_errors.m	1999/07/07 14:43:30
@@ -925,6 +925,14 @@
 	prog_out__write_context(Context),
 	io__write_string("  in "),
 	( { ArgNum =< 0 } ->
+		% Argument numbers that are less than or equal to zero
+		% are used for the type_info and typeclass_info arguments
+		% that are introduced by polymorphism.m.
+		% I think argument number equal to zero might also be used
+		% in some other cases when we just don't have any information
+		% about which argument it is.
+		% For both of these, we just say "in call to"
+		% rather than "in argument N of call to".
 		[]
 	;
 		io__write_string("argument "),

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>  |  of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3        |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list