Modulinos: Difference between revisions
m
→{{header|Wren}}: Minor tidy
m (→{{header|Wren}}: Minor tidy) |
|||
Line 2,019:
First we create a module for our modulino:
<syntaxhighlight lang="
var MeaningOfLife = Fn.new { 42 }
Line 2,029:
// Check if it's being used as a library or not.
import "os" for Process
if (Process.allArguments[1] == "
main.call()
}</syntaxhighlight>
Line 2,040:
Next we create another module which imports the modulino:
<syntaxhighlight lang="
import "./
var main = Fn.new {
|