Jump to content

Start from a main routine: Difference between revisions

m
{{header|AWK}}
m (omissions list extended)
m ({{header|AWK}})
Line 4:
 
Languages that always run from main() can be omitted from this task.
 
=={{header|AWK}}==
 
The awk language is data driven. However, it does support the use of begin blocks, so we could use one of those to provide us with a main startup procedure:
 
<lang awk>BEGIN {
# This is our main startup procedure
print "Hello World!"
}</lang>
 
=={{header|Gambas}}==
Line 39 ⟶ 48:
* Click the OK button.
 
{{omit from|AWKBc|ThisScripts languagestart isrunning datafrom driventhe top}}
{{omit from|C}}
{{omit from|C++}}
{{omit from|Dc|Scripts start running from the top}}
{{omit from|ZX Spectrum Basic|Programs runs from top (lowest line number), or a line number can be specified at run time}}
{{omit from|UNIX Shell|Scripts start running from the top}}
Cookies help us deliver our services. By using our services, you agree to our use of cookies.