Modulinos: Difference between revisions

(Added Clojure (whew!))
Line 128:
Clojure has a function -main which will run in only three cases.
 
1 -# clj is passed the flag -m <class>
 
<lang sh>$ clj -m scriptedmain
Main: The meaning of life is 42</lang>
 
2 -# A shebang forces -m
 
<lang sh>$ ./scriptedmain.clj
Main: The meaning of life is 42</lang>
 
3 -# The compiled class is run.
 
<lang sh>$ java -cp ~/Library/Clojure/lib/clojure.jar:. scriptedmain
Anonymous user