[m-rev.] diff: java: add stubs for unify and compare

Fergus Henderson fjh at cs.mu.OZ.AU
Wed Oct 16 18:15:37 AEST 2002


Estimated hours taken: 0.5
Branches: main

java/library/builtin.java:
	Define stubs for the generic unify and compare, to avoid errors
	from the Java compiler when compiling automatically-generated
	type-specific unify and compare procedures for polymorphic types.

Workspace: /home/ceres/fjh/ws-ceres2/mercury
Index: java/library/builtin.java
===================================================================
RCS file: /home/mercury1/repository/mercury/java/library/builtin.java,v
retrieving revision 1.1
diff -u -d -r1.1 builtin.java
--- java/library/builtin.java	11 Feb 2002 06:31:24 -0000	1.1
+++ java/library/builtin.java	10 Oct 2002 15:21:34 -0000
@@ -26,7 +26,19 @@
         return;
       }
     }
-  
+
+    public static boolean unify_2_p_0(mercury.private_builtin.type_info_1 ti,
+		    java.lang.Object x, java.lang.Object y)
+    {
+      throw new Java.lang.Error("unify/3 not implemented");
+    }
+
+    public static comparison_result_0 compare_3_p_0(
+	mercury.private_builtin.type_info_1 ti,
+	java.lang.Object x, java.lang.Object y)
+    {
+      throw new Java.lang.Error("compare/3 not implemented");
+    }
  }
 
 

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
The University of Melbourne         |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
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