main as an exported predicate
Thomas Charles CONWAY
conway at cs.mu.OZ.AU
Sat May 2 11:34:57 AEST 1998
Hi
Main/2 is handled rather specially in the runtime at the moment: the
runtime contains a hard-coded call to nonprofcall for main. Is there
any reason (other than hysterical) that main shouldn't be handled like
the library_initializer - and be a predicate automatically exported to
C and then called via the usual C-calls-Mercury mechanism?
Thomas
--
Thomas Conway <conway at cs.mu.oz.au>
Nail here [] for new monitor. )O+
More information about the developers
mailing list