<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered)">
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
span.EmailStyle17
{font-family:Arial;
color:windowtext;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>If you have tried to compile Mercury with the –il
option using .NET 2.0 you will eventually get to the following problem noted in
the dev mailing list.</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><a
href="http://www.cs.mu.oz.au/research/mercury/mailing-lists/mercury-developers/mercury-developers.200605/0005.html"
title="http://www.cs.mu.oz.au/research/mercury/mailing-lists/mercury-developers/mercury-developers.200605/0005.html"><font
size=3 face="Times New Roman"
title="http://www.cs.mu.oz.au/research/mercury/mailing-lists/mercury-developers/mercury-developers.200605/0005.html"><span
title="http://www.cs.mu.oz.au/research/mercury/mailing-lists/mercury-developers/mercury-developers.200605/0005.html"><span
style='font-size:12.0pt;font-family:"Times New Roman"'>Mercury on .NET 2 and
Mono </span></span></font></a></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>With help from </span></font>Jonathan Morgan, I have been
able to get a stripped down version of <font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>dir__csharp_code.cs to
compile. The step at which dir__csharp_code.cs is compiled is what causes the
errors noted above.</span></font></p>
<p class=MsoNormal><font size=2 face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New"'> </span></font></p>
<p class=MsoNormal><font size=2 face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New"'>The errors were cause by the modules being
referenced as assemblies. Once the IL code was changed in a sandbox version
that recreated the errors, dir__csharp_code.cs compiled.</span></font></p>
<p class=MsoNormal><font size=2 face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New"'> </span></font></p>
<p class=MsoNormal><font size=2 face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New"'>Now that the signature of the problem is known, I
will work toward fixing the code for the compiler, but as I only built Mercury
for the first time a week ago, I have a lot of catching up. </span></font></p>
<p class=MsoNormal><font size=2 face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New"'> </span></font></p>
<p class=MsoNormal><font size=2 face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New"'>Attached is a diff between the sandboxed Mercury
code and valid code that shows the specific changes.</span></font></p>
<p class=MsoNormal><font size=2 face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New"'> </span></font></p>
<p class=MsoNormal><font size=2 face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New"'>If you are working on getting Mercury to build with
–il using .NET 2.0, I would be interested in working together. I am in New Jersey, USA, so for those of you in Australia, it will be interesting.</span></font></p>
<p class=MsoNormal><font size=2 face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New"'> </span></font></p>
<p class=MsoNormal><font size=2 face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New"'>Eric</span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> </span></font></p>
</div>
</body>
</html>