[m-rev.] for review: C# backend

Peter Wang novalazy at gmail.com
Mon Sep 20 11:19:03 AEST 2010


On 2010-09-19, Julien Fischer <juliensf at csse.unimelb.edu.au> wrote:
> 
> On Thu, 16 Sep 2010, Peter Wang wrote:
> 
> > On 2010-09-14, Julien Fischer <juliensf at csse.unimelb.edu.au> wrote:
> > >
> > > Hi Peter,
> > >
> > > I've had a look through this diff and it looks ok.  (I have some
> > > reservations regarding the re-use of the java_names module for C# -- see
> > > below.)  Provided you've bootchecked the compiler in at least one of the
> > > other MLDS grades, feel free to commit.
> 
> Once small problem I have come across is that
> 
>    mmc --make foo.cs
> 
> used to build all the .c files related to foo.m.  It now attempts
> to build the C# source file foo.cs.  (I use the above in G12 to
> check library interfaces for libraries that are not enabled.)

Not sure how to fix it.  We could use a non-standard extension for C#
source files, e.g. .csharp.  It seems to work at least with the Mono
compiler, but the man page warns that 'C# source files must end with a
".cs" extension.' so I'd rather not.

We could use <target>.csharp as the target name in mmc --make but
write out .cs files.

We could deprecate the <target>.<ext>s syntax and replace it with
something like <target>.all_<ext>s.

Peter
--------------------------------------------------------------------------
mercury-reviews mailing list
Post messages to:       mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions:          mercury-reviews-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the reviews mailing list