[mercury-users] multiple main predicates
Michael Day
mikeday at bigpond.net.au
Thu Jul 11 20:33:17 AEST 2002
> Which `main/2' are expecting will be called?
Whichever one I compiled...
mmc --make foo.bar
mmc --make foo.meep
I end up with two executables, foo.bar and foo.meep, which work as you
would expect (calling the correct main predicate).
Oh well, it was quite handy behaviour sometimes. But the compiler's
preferences take precedence over mine :)
Michael
--------------------------------------------------------------------------
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