[mercury-users] Various Queries.... asap

Fergus Henderson fjh at cs.mu.OZ.AU
Wed Oct 16 00:04:03 AEST 2002


On 15-Oct-2002, Noel  Pinto <cool4life at rediffmail.com> wrote:
> 
> >> 5) When compiling the modules with mmc, what is the difference
> >> between short-int, priv-int and int interfaces.
> >
> >You don't need to know.  Just use Mmake (or the new `mmc --make' 
> >option).
> >
> >But, since you asked:  [...]
> 
> When I compile my files and make interfaces, I use
> mmc --make-int filename1.m filename2.m .......

This is a bad idea.  Just use mmake
(or the new `mmc --make' option).

> It works fine.
> So, Is it necessary to compile the code with...
> mmc --make-short-int filename1.m filename2.m .......
> 
> and
> 
> mmc --make-priv-int filename1.m filename2.m .......

Sometimes it is.  `mmc --make-priv-int' is needed if you are using
nested modules.  `mmc --make-short-int' is needed if module
`filename2' imports module `filename1' or vice versa, I think.

But don't use those options. JUST USE MMAKE!

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
The University of Melbourne         |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-users mailing list
post:  mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-users-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the users mailing list