Start from a main routine: Difference between revisions
m
no edit summary
mNo edit summary |
|||
Line 700:
{{out|input=foo /bar baz "visual basic"}}
<pre>main; args:foo, /bar, baz, visual basic</pre>
=={{header|V (Vlang)}}==
main() is the usual entry point for a program.
<syntaxhighlight lang="Vlang">
fn main() {
println("hello world")
}
</syntaxhighlight>
However, this can be skipped in one file programs, allowing Vlang to be used like a script.
<syntaxhighlight lang="Vlang">
println("hello world")
</syntaxhighlight>
=={{header|Wren}}==
|