Start from a main routine: Difference between revisions

Added zkl
(Added Ruby)
(Added zkl)
Line 229:
 
* Click the OK button.
 
=={{header|zkl}}==
In zkl there is no main per se, the constructor of the top most enclosing class (usually the file as files define a class) is run. This remains the same even when a gui front end is pasted on.
 
file foo.zkl:
<lang zkl>"Hello".println()</lang>
forms an anonymous class whose constructor is a function with the above code. "zkl foo" does the expected.
 
=={{header|ZX Spectrum Basic}}==
Anonymous user