[m-dev.] foreign_type pragmas in module interfaces

Julien Fischer juliensf at cs.mu.OZ.AU
Wed Apr 26 17:02:48 AEST 2006


The compiler currently compiles the following without complaint:

	:- module ftype_in_interface.
	:- interface.

	:- type foo.
	:- foreign_type("C", foo, "MR_Word").

Allowing foreign_type pragmas in module interfaces looks like a bug to me.

Julien.

--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list