[mercury-users] Mercury IL and Managed C++

Fergus Henderson fjh at cs.mu.OZ.AU
Thu Dec 1 17:14:09 AEDT 2005


On 19-Nov-2005, Jonathan Morgan <jon.morgan at optusnet.com.au> wrote:
> System.TypeInitializationException: The type initializer for
> "mercury.enum.mercury_code" threw an exception. ---> System.MissingFieldExce
> ption: Field not found:
> mercury.private_builtin__csharp_code.mercury_code.MR_FUNCTION.

Please try the following patch.

Index: mercury/library/private_builtin.m
===================================================================
RCS file: /home/mercury1/repository/mercury/library/private_builtin.m,v
retrieving revision 1.148
diff -u -d -r1.148 private_builtin.m
--- mercury/library/private_builtin.m	17 Oct 2005 07:43:28 -0000	1.148
+++ mercury/library/private_builtin.m	1 Dec 2005 06:13:03 -0000
@@ -481,6 +481,9 @@
 public static int MR_SECTAG_REMOTE                      = 2;
 public static int MR_SECTAG_VARIABLE                    = 3;
 
+public static int MR_PREDICATE                          = 0;
+public static int MR_FUNCTION                           = 1;
+
 public static bool
 special__Unify____type_info_1_0(
     object[] type_info, object[] x, object[] y)

-- 
Fergus Henderson                    |  "I have always known that the pursuit
                                    |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-users mailing list
post:  mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-users-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the users mailing list