[m-rev.] for review: change arg ordering in bimap, map and multi_map modules

Julien Fischer juliensf at csse.unimelb.edu.au
Fri Apr 29 15:54:55 AEST 2011


This change doesn't really need to be reviewed (except for the NEW file),
however it will almost certainly affect anyone who has outstanding changes
so if committing this is likely to causes problems the please let me know
and I will wait; otherwise I will commit it early next week.

I haven't attached the full diff here as it's very big and very boring.
(For those interested it's in the 
file /home/mercury/juliensf/tmp/SV-Diff.Full.)

------------------

Branches: main

Change the argument order of many of the predicates in the map, bimap, and
multi_map modules so they are more conducive to the use of state variable
notation, i.e. make the order the same as in the sv* modules.

Prepare for the deprecation of the sv{bimap,map,multi_map} modules by
removing their use throughout the system.

library/bimap.m:
library/map.m:
library/multi_map.m:
 	As above.
NEWS:
 	Announce the change.

 	Separate out the "highlights" from the "detailed listing" for
 	the post-11.01 NEWS.

 	Reorganise the announcement of the Unicode support.

benchmarks/*/*.m:
browser/*.m:
compiler/*.m:
deep_profiler/*.m:
extras/*/*.m:
mdbcomp/*.m:
profiler/*.m:
tests/*/*.m:
ssdb/*.m:
samples/*/*.m
slice/*.m:
 	Conform to the above change.

 	Remove any dependencies on the sv{bimap,map,multi_map} modules.

Julien.

Index: NEWS
===================================================================
RCS file: /home/mercury/mercury1/repository/mercury/NEWS,v
retrieving revision 1.559
diff -u -r1.559 NEWS
--- NEWS	4 Apr 2011 23:56:08 -0000	1.559
+++ NEWS	29 Apr 2011 05:36:26 -0000
@@ -1,11 +1,45 @@
  NEWS since Mercury 11.01
  ------------------------

-* We have improved Unicode support in the compiler and standard library.
+HIGHLIGHTS
+==========
+
+Changes to the Mercury language:
+
+* The `char' type now represents a Unicode code point.
+
+Changes to the Mercury standard library:
+
+* We have improved Unicode support in the standard library.
+
+* We have changed the argument order of many of the predicates in the
+  bimap, map, and multi_map modules in order to make them more conducive
+  to the use of state variable notation.
+
+
+DETAILED LISTING
+================
+
+Changes to the Mercury standard library:
+
+* We have improved Unicode support in the standard library.
+
+    + Procedures in the string module now understand either UTF-8 or
+      UTF-16 encodings, depending upon the backend.
+
+    + Text I/O routines now read and write files in UTF-8 encoding.

-  The `char' type now represents to a Unicode code point.  String procedures
-  understand either UTF-8 or UTF-16 encodings, depending on the backend.
-  Text I/O routines now read and write files in UTF-8 encoding.
+* The argument of the following predicates has been changed in order to
+  make them more conducive to the use of state variable notation:
+  bimap.insert/4, bimap.det_insert/4, bimap.set/4, map.insert/4,
+  map.det_insert/4, map.det_insert_from_corresponding_lists/4,
+  map.det_insert_from_assoc_list/3, map.set_from_corresponding_lists/4,
+  map.set_from_assoc_list/3, map.update/4, map.det_update/4, map.delete/3,
+  map.delete_list/3, map.remove/4, map.det_remove/4, map.remove_smallest/4,
+  multi_map.insert/4, multi_map.det_insert/4, multi_map.update/4,
+  multi_map.det_update/4, multi_map.det_replace/4, multi_map.set/4,
+  multi_map.add/4, multi_map.delete/4, multi_map.remove/4, and
+  multi_map.remove_smallest/4.


  NEWS for Mercury 11.01

--------------------------------------------------------------------------
mercury-reviews mailing list
Post messages to:       mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions:          mercury-reviews-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the reviews mailing list