[m-users.] Mercury to c# workflow?

Julien Fischer jfischer at opturion.com
Mon Jan 17 02:27:49 AEDT 2022


On Mon, 17 Jan 2022, Julien Fischer wrote:

> I have attached a small example (similar to the C# interface example)
> that defines a Mercury database of fruit, keeping track of whether the
> fruits in it are citrus or not.  The accompanying C# program
> manipulates this database using the predicates and types exported to
> C# from the Mercury module. It illustrates one way of achieving the
> above.

You will need to add the call to initialise Mercury's standard library
to the beginning of the Main method in CSharpMain.cs, e.g.

     library.ML_std_library_init();

I accidently deleted it while editing that file.
(The example runs without it, but other things may not work properly.)

Julien.


More information about the users mailing list