Start from a main routine: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
Line 142:
 
If you want the script to exit even when it hits an error, you can use an [http://www.jsoftware.com/help/dictionary/dx009.htm#26 immex phrase], which will be the first thing executed by the event loop, before it prompts.
 
=={{header|Julia}}==
If the program, julia, is executed via the command line without a program filename argument, it will enter a REPL (Read–Evaluate-Print-Loop) by default, without executing any user code until that is entered via the REPL command line. If, instead, Julia is started with a Julia program filename as argument, it will execute that program and, after that program terminates, exit without seeking any REPL input.
 
=={{header|Kotlin}}==
4,106

edits