[mercury-users] Compiling Libraries...

Nancy Mazur Nancy.Mazur at cs.kuleuven.ac.be
Thu Dec 12 23:24:07 AEDT 2002


* Noel  Pinto <cool4life at rediffmail.com> [2002-12-12 11:42]:
> Hi,
> 
> I also want to know why the library files of Mercury do not have 
> main predicate

Well, for the same reason that not all modules within a Mercury project
have one. The purpose of the main predicate in Mercury is the same as
the purpose of the main-function in C. It's were the execution of the
program starts. 
So, why should there be a main predicate in a library file? The purpose
of a library file is to provide predicates which can be used in a
program. The main-predicate is therefore expected to be located in the
user modules, not in the library modules. 

Nancy
--------------------------------------------------------------------------
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