On Tue, 16 Feb 2010 02:35:03 +0100
Michał Marczyk <michal.marc...@gmail.com> wrote:

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

Might it be worthwhile tweaking clojure.main to run such a function if
it's found in a script that it's executing?

     <mike
-- 
Mike Meyer <m...@mired.org>             http://www.mired.org/consulting.html
Independent Network/Unix/Perforce consultant, email for more information.

O< ascii ribbon campaign - stop html mail - www.asciiribbon.org

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