[m-dev.] foreign_import_module

Zoltan Somogyi zoltan.somogyi at runbox.com
Thu Jun 20 19:36:21 AEST 2019



On Thu, 20 Jun 2019 11:21:53 +1000 (AEST), Julien Fischer <jfischer at opturion.com> wrote:
> > + at c XXX Does anyone know what does sentence means? I can't ask Fergus.
> >  A cycle of @samp{pragma foreign_import_module}, where the language is
> >  @samp{"C#"} or @samp{"Java"}, is not permitted.
> 
> I've just had a dig through the revision history for this bit.
> 
> That line (minus the bit about the Java) grade was added by Peter Ross
> in commit e868b11d.  At the time, it was with reference to the old IL
> backend, the foreign languages involved were IL, C# and MC++.
> 
> I suspect the restriction on foreign_import_module cycles may have
> arisen because C# and MC++ were secondary (i.e. non-target) foreign
> languages.  Compilation of secondary foreign languages is handled by
> hoisting the code out to a separate source file and that requires
> the foreign_import_module graph to be acyclic.
> 
> None of that line is applicable to C# and Java when they are the target
> langugage.

OK, I have commented out those two lines about cycles, and added your
reason next to them as the reason for commenting them out.

Zoltan.


More information about the developers mailing list