Start from a main routine: Difference between revisions
Content added Content deleted
Line 136: | Line 136: | ||
For instance if file1.of is : |
For instance if file1.of is : |
||
<lang Oforth>func: |
<lang Oforth>func: main(n) |
||
{ |
{ |
||
"Sleeping..." println |
"Sleeping..." println |
||
Line 152: | Line 152: | ||
With this file (for instance file2.of) : |
With this file (for instance file2.of) : |
||
<lang Oforth>func: |
<lang Oforth>func: main(n) |
||
{ |
{ |
||
"Sleeping..." println |
"Sleeping..." println |
||
Line 176: | Line 176: | ||
Awake and leaving. |
Awake and leaving. |
||
</pre> |
</pre> |
||
Of course, "main" as function name to launch is not required : every name is ok. |
|||
=={{header|PARI/GP}}== |
=={{header|PARI/GP}}== |