On 16 February 2010 02:12, Mike Meyer
<mwm-keyword-googlegroups.620...@mired.org> wrote:
> To bad. It's really handy, especially as it starts trickling into
> system modules. You get one file that provides the simple command line
> usage plus functions that allow user to get to advanced usage. It also
> restores functionality that appears to be available in Java but not
> clojure, in that properly written scripts can then be invoked either
> from the command line, or as a function by an external caller.

You can use gen-class to make your script runnable by Java. Just be
sure to provide a -main function (or prefix-main, if you change the
method prefix).

The functions exported by the script's namespace will still be
available as usual to Clojure code which requires / uses the
namespace.

Sincerely,
Michał

-- 
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