Ceylon (programming language): Difference between revisions

Content deleted Content added
m Template:Infobox programming language parameters: move, add, fill.
Entry point with names: there is no "needs to have a run function"
Line 214:
 
=== Entry point with names===
By default the starter (<code>ceylon run</code>) runs the shared run() function of a module:
A Ceylon program must have a main function called run():
<source lang="ceylon">
/* The classic Hello World program */
Line 221:
}
</source>
but any other shared function without parameters can be used as main calling the program with the --run parameter, like this:
 
<code>ceylon run --compile=force --run hello default</code>