[m-rev.] Change compiler output to use `.' as module separator

Ralph Becket rafe at cs.mu.OZ.AU
Fri Jan 3 17:29:04 AEDT 2003


Peter Ross, Thursday, 19 December 2002:
> rafe wrote:
> > Estimated hours taken: 3
> > 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.
> >
> You need to add a change to configure.in to test that the compiler
> recognises `.' as a module separator.  Also before checking this change in
> you need to tag the branch with a bootstrap tag. See
> http://www.mercury.cs.mu.oz.au/information/doc-latest/bootstrapping.html for
> details.

This change doesn't actually prevent bootstrapping, although any later
compiler code that does use `.' as a module qualifier will cause
problems so I will do as you suggest.

Here's the diff for the fix for configure.in:

Index: configure.in
===================================================================
RCS file: /home/mercury1/repository/mercury/configure.in,v
retrieving revision 1.345
diff -u -r1.345 configure.in
--- configure.in	2 Jan 2003 06:53:51 -0000	1.345
+++ configure.in	3 Jan 2003 06:27:28 -0000
@@ -116,9 +116,9 @@
 		main(!IO) :-
 			return_rtti_version(Version),
 			( Version >= 6 ->
-				print("Hello, world\n", !IO)
+				io.print("Hello, world\n", !IO)
 			;
-				print("Nope.\n", !IO)
+				io.print("Nope.\n", !IO)
 			).
 
 		:- pred return_rtti_version(int::out) is det.
--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list