> Which leads to the question: what's in Blah.clj? In particular,
> there's nothing in clojure that automatically run things in the script
> file; you have to explicitly invoke the main function at the end of
> the script. If you don't, then invoking it on the command line will
> just load it, and then exit without running anything.

Hmmm? I've been invoking scripts regularly since forever ;)

Back in the 1.0 days there was the clojure.Repl vs. clojure.Script
(IIRC); with 1.1 clojure.main does both things depending on
parameters. For example:

% echo '(println "test")' > test.clj
% java -cp /usr/local/share/java/classes/clojure.jar clojure.main test.clj
test

-- 
/ Peter Schuller

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to