On Feb 1, 3:16 pm, Timothy Pratley <timothyprat...@gmail.com> wrote:
> On 1 February 2010 09:32, Wardrop <t...@tomwardrop.com> wrote:
>
> > Could someone step me through the idea behind the -main function
> > (which I've also seen written as just "main" without the hyphen).
>
> Is "-main" special in any way, or is this just a convention that some
> environments select? In the past I think I've used a manifest to
> specify the main entry point... is that really necessary or does -main
> map to the default main entry point regardless of build tool? Just
> curious really!

-main is only special in that it maps to the 'main' method which the
JVM considers the main entry point of a class

The dash is the default gen-class prefix for functions that should be
used as the implementation of a method. You can specify another prefix
in the :gen-class form using the :prefix option.

--
Jarkko

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