diff: update doc/transition_guide.texi

Fergus Henderson fjh at cs.mu.OZ.AU
Mon Feb 1 11:56:12 AEDT 1999


Estimated hours taken: 0.1

Apply a patch from Bas de Bakker <basde.bakker at pica.nl>.

doc/transition_guide.texi:
	Update the table of operator precedences.
	Fix an error in the mode declaration for factorial.

Index: doc/transition_guide.texi
===================================================================
RCS file: /home/mercury1/repository/mercury/doc/transition_guide.texi,v
retrieving revision 1.24
diff -u -r1.24 transition_guide.texi
--- transition_guide.texi	1998/11/23 03:20:09	1.24
+++ transition_guide.texi	1999/02/01 00:44:44
@@ -19,7 +19,7 @@
 @ifinfo
 This file is an aid for people porting Prolog programs to Mercury.
 
-Copyright (C) 1995-1998 The University of Melbourne.
+Copyright (C) 1995-1999 The University of Melbourne.
 
 Permission is granted to make and distribute verbatim copies of
 this manual provided the copyright notice and this permission notice
@@ -48,7 +48,7 @@
 @author Fergus Henderson
 @page
 @vskip 0pt plus 1filll
-Copyright @copyright{} 1995-1998 The University of Melbourne.
+Copyright @copyright{} 1995-1999 The University of Melbourne.
 
 Permission is granted to make and distribute verbatim copies of
 this manual provided the copyright notice and this permission notice
@@ -150,25 +150,31 @@
 ~               fy              900
 all             fxy             950
 and             xfy             720
+div             yfx             400
 else            xfy             1170
 end_module      fx              1199
 func            fx              800
 if              fx              1160
 import_module   fx              1199
+include_module  fx              1199
 impure          fy              800
 inst            fx              1199
-is              xfx             700
+instance        fx              1199
+is              xfx             701
+lambda          fxy             950
 mod             xfx             300
 mode            fx              1199
 module          fx              1199
 not             fy              900
 or              xfy             740
+pragma          fx              1199
 pred            fx              800
 rule            fx              1199
 semipure        fy              800
 some            fxy             950
 then            xfx             1150
 type            fx              1180
+typeclass       fx              1199
 when            xfx             900
 where           xfx             1175
 @end example
@@ -549,7 +555,7 @@
 
 @example
 :- pred factorial(int, int).
-:- mode factorial(int, int) is det.
+:- mode factorial(in, out) is det.
 
 factorial(N, F) :-
     ( N =< 0 ->

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "Binaries may die
WWW: <http://www.cs.mu.oz.au/~fjh>  |   but source code lives forever"
PGP: finger fjh at 128.250.37.3        |     -- leaked Microsoft memo.



More information about the developers mailing list