Start from a main routine: Difference between revisions
Content added Content deleted
(add Ada) |
(Added PicoLisp) |
||
Line 55: | Line 55: | ||
INIT {...} # beginning of run time |
INIT {...} # beginning of run time |
||
END {...} # end of run time</lang> |
END {...} # end of run time</lang> |
||
=={{header|PicoLisp}}== |
|||
PicoLisp automatically starts a REPL (read-eval-print loop), which is a kind of event loop. If that is not desired, call (wait), or pass -wait on the command line. Per convention, the GUI event loop is started by calling (go), or by passing -go on the command line. |
|||
=={{header|PureBasic}}== |
=={{header|PureBasic}}== |
||
PureBasic is procedural and any code which is not part of a procedure is considered 'main' code. This code also does not use any explicit syntax (i.e. a 'main' module) to cause it to execute and it always executes first. |
PureBasic is procedural and any code which is not part of a procedure is considered 'main' code. This code also does not use any explicit syntax (i.e. a 'main' module) to cause it to execute and it always executes first. |