Modulinos: Difference between revisions
no edit summary
(→{{header|OCaml}}: more reasonable example using Sys.interactive) |
No edit summary |
||
Line 1,335:
Note: Actually another program can invoke the above (ma.rex) as a command:
<lang rexx>'rexx ma'</lang>
=={{header|Ring}}==
<lang ring>
# Project : Modulinos
# Date : 2017/12/23
# Author : Gal Zsolt (~ CalmoSoft ~)
# Email : <calmosoft@gmail.com>
func meaningoflife()
y = 42
return y
func main()
see "Main: The meaning of life is " + meaningoflife() + nl
</lang>
Output:
<pre>
Main: The meaning of life is 42
</pre>
=={{header|Ruby}}==
|