RE: How to Initiate Clojure Application

2010-02-02 Thread Clive Tong
: 01 February 2010 22:55 To: Clojure Subject: Re: How to Initiate Clojure Application Ok, this seems to work... (ns localhost.test) (clojure.main/main (println Hello!)) I then assume I'd use the special form do to perform multiple unrelated tasks, such as... (clojure.main/main (do

Re: How to Initiate Clojure Application

2010-02-01 Thread ataggart
You can generate a Java class with a main method (as you have done), or you can use clojure.main: http://clojure.org/repl_and_main On Jan 31, 2:32 pm, Wardrop t...@tomwardrop.com wrote: I'm having trouble finding any resources on the net for telling me how to initiate a Clojure application

Re: How to Initiate Clojure Application

2010-02-01 Thread Timothy Pratley
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

Re: How to Initiate Clojure Application

2010-02-01 Thread Jarkko Oranen
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

Re: How to Initiate Clojure Application

2010-02-01 Thread mac
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! I

Re: How to Initiate Clojure Application

2010-02-01 Thread Wardrop
for telling me how to initiate a Clojure application. I'm currently using Netbeans with a Clojure plugin, and from what I gather from one of the examples, I need to define a main function as the launching point for my app, but there seems to be a little more to it. The only example code I've

Re: How to Initiate Clojure Application

2010-02-01 Thread ataggart
On Feb 1, 2:54 pm, Wardrop t...@tomwardrop.com wrote: Ok, this seems to work... (ns localhost.test) (clojure.main/main (println Hello!)) I then assume I'd use the special form do to perform multiple unrelated tasks, such as... (clojure.main/main   (do     (println Hello!) (println

How to Initiate Clojure Application

2010-01-31 Thread Wardrop
I'm having trouble finding any resources on the net for telling me how to initiate a Clojure application. I'm currently using Netbeans with a Clojure plugin, and from what I gather from one of the examples, I need to define a main function as the launching point for my app, but there seems