[m-dev.] foreign_export_enum visibility

Julien Fischer juliensf at csse.unimelb.edu.au
Tue Feb 26 15:10:04 AEDT 2008


On Tue, 26 Feb 2008, Julien Fischer wrote:

>
> On Tue, 26 Feb 2008, Ralph Becket wrote:
>
>> Ralph Becket, Tuesday, 26 February 2008:
>>> An error is reported if a pragma foreign_export_enum appears in the
>>> interface section of a module.  Is a foreign_export_enum in module m1
>>> visible in C code in module m2 that imports m1?
>> 
>> It seems the answer is no, going by the behaviour of the compiler.
>
> It should be if the m2 conains a foreign_import_module declaration
> for m1.

What I meant to say there was that it should work if m2 contains a
foreign_import_module declaration for m1, e.g.

 	:- pragma foreign_import_module("C", m1).

(What I actually said doesn't appear make a great deal of sense upon
re-reading it.)

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



More information about the developers mailing list