| |||||||||||
| For applications, main/1 of the first loaded package will be called at startup time of a MINERVA program. main(+Args)For applets, main/2 of the first loaded package will be called at startup time of a MINERVA program. main(+Applet, +Args) The argument Args is the list of arguments passed to the MINERVA program from the command line or from the HTML wrapper. If no user defined predicate main/1 is defined, then MINERVA will start in interactive mode and prompt the user for input. Called is only the main/1 of the chronologically first loaded package, usually the one which is specified by the -l argument to minerva or to the one declared as package main in the *.mca or *.msp file. Other definitions of main/1 are ignored and cause a warning. For unconditional processing at load time of a package use the init/1 directive.
| |||||||||||
| |||||||||||
| Back> |
|