Modulinos: Difference between revisions
Content added Content deleted
(→{{header|OCaml}}: more reasonable example using Sys.interactive) |
No edit summary |
||
Line 1,335: | Line 1,335: | ||
Note: Actually another program can invoke the above (ma.rex) as a command: |
Note: Actually another program can invoke the above (ma.rex) as a command: |
||
<lang rexx>'rexx ma'</lang> |
<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}}== |
=={{header|Ruby}}== |