[m-rev.] Re: Diff (needs committing): Make the IL backend compile
Julien Fischer
juliensf at cs.mu.OZ.AU
Tue May 9 15:07:27 AEST 2006
On Mon, 8 May 2006, Jonathan Morgan wrote:
> On 5/1/06, Jonathan Morgan <jonmmorgan at gmail.com> wrote:
> > With this patch (and no inlining in injection) the IL backend compiles
> > correctly.
> >
> > Jon
> >
> > library/rtti_implementation.m:
> > s/NULL/null in C# foreign code.
>
> I have discovered that not all my changes made it into the patch I
> gave you. There is one more below. I have no idea how this failed to
> be in the diff.
>
Fixed. Thanks for that.
> Also, after it is compiled, the IL backend is currently broken. For
> the simple iltest module, it produces the following:
>
> Unhandled Exception: System.TypeInitializationException: The type
> initializer for "iltest.mercury_code" threw an exception. --->
> System.MissingFieldException: Field not found:
> mercury.private_builtin__csharp_code.mercury_code.dummy_var.
>
> at mercury.io.mercury_code.init_state_2()
>
> at mercury.runtime.Init.init_runtime(Boolean initialise)
>
> at iltest.mercury_code..cctor()
>
> --- End of inner exception stack trace ---
>
> at iltest.mercury_code.main_2()
>
> It's obviously failing to find dummy_var, but I have no idea why, as
> dummy_var is certainly correctly defined in private_builtin.m.
At a guess, this may have something to do with the change in how dummy
types are treated by the compiler, see:
<http://www.cs.mu.oz.au/research/mercury/mailing-lists/mercury-reviews/mercury-reviews.200510/0023.html>
Julien.
--------------------------------------------------------------------------
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