Modulinos: Difference between revisions

Content added Content deleted
(Added Wren)
(added Arturo)
Line 24: Line 24:
print(‘Life means ’life:meaning_of_life()‘.’)
print(‘Life means ’life:meaning_of_life()‘.’)
print(‘Death means nothing.’)</lang>
print(‘Death means nothing.’)</lang>

=={{header|Arturo}}==

===Library===

<lang rebol>; modulinos - 1
meaningOfLife: function [][
42
]

if standalone? ->
print ~"Main: The meaning of life is |meaningOfLife|"</lang>

{{out}}

<pre>Main: The meaning of life is 42</pre>

===Importing===

<lang rebol>do.import relative "modulinos - 1.art"
print ~"Life means |meaningOfLife|."
print "Death means invisible scary skeletons."</lang>

{{out}}

<pre>Life means 42.
Death means invisible scary skeletons.</pre>


=={{header|C}}==
=={{header|C}}==