IF Computer > MINERVA > Manual > Reference > main

main

MINERVA
ifcomputer logo
f
Expert Services on the Web

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.

document: http://www.ifcomputer.co.jp/MINERVA/Manual/Reference/main/print_de.html
published 2008/12/1 update 1999/5/10 (c) 1996-2006 IF Computer Japan
IF Computer 5-28-2 Sendagi, Bunkyo-ku Tel +81-3-5814-3352 start (AT) ifcomputer.com
Customer Support Tokyo 113-0022 Japan   http://www.ifcomputer.com
Back> managed with ubiCMS