[mercury-users] multiple main predicates

Simon Taylor stayl at cs.mu.OZ.AU
Thu Jul 11 19:45:04 AEST 2002

On 11-Jul-2002, Michael Day <mikeday at bigpond.net.au> wrote:
> A module foo includes sub modules bar and meep, each of which are intended
> to be separate programs and hence contain their own main predicates. foo
> itself does not contain a main predicate.
> This used to compile on 2002-05-12 although it generated errors about 
> duplicate main predicates which went away if the build was repeated. 
> However on 2002-07-09 the errors don't go away.

That was a bug, but I'm not sure what changed to fix the problem.

> Is this really an error? It's handy to have sub modules be programs
> sometimes.

Which `main/2' are expecting will be called?

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