Re: A stupid beginners question about Compile

2009-02-13 Thread Stephen C. Gilardi
On Feb 13, 2009, at 12:28 PM, Laurent PETIT wrote: Yes, and the prefix list convenience would also solve Stephen's problem with the violation of the DRY principle in this area :-) Exactly! --Steve smime.p7s Description: S/MIME cryptographic signature

Re: A stupid beginners question about Compile

2009-02-13 Thread Laurent PETIT
2009/2/13 Stephen C. Gilardi > I wonder what the rationale was for making it so namespaces need to be >> quoted when using in-ns. They don't need to be quoted when using ns. >> For example, I have >> >> (ns com.ociweb.talk (:gen-class)) in one file >> >> and >> >> (in-ns 'com.ociweb.talk) in ano

Re: A stupid beginners question about Compile

2009-02-13 Thread Stephen C. Gilardi
I wonder what the rationale was for making it so namespaces need to be quoted when using in-ns. They don't need to be quoted when using ns. For example, I have (ns com.ociweb.talk (:gen-class)) in one file and (in-ns 'com.ociweb.talk) in another. I guess this is because it's conceivable one mi

Re: A stupid beginners question about Compile

2009-02-13 Thread Mark Volkmann
On Fri, Feb 13, 2009 at 10:29 AM, Laurent PETIT wrote: > That's really a matter of conventions. Both work, and you just have to > correctly adjust the call to load : > > 1st layout : > src/echo/test.clj > src/echo/test/test-part2.clj > > Then you'll have (ns echo.test (:load "test/test-part2") in

Re: A stupid beginners question about Compile

2009-02-13 Thread Laurent PETIT
That's really a matter of conventions. Both work, and you just have to correctly adjust the call to load : 1st layout : src/echo/test.clj src/echo/test/test-part2.clj Then you'll have (ns echo.test (:load "test/test-part2") in src/echo/test.clj 2d layout: src/echo/test.clj src/echo/test-part2.cl

Re: A stupid beginners question about Compile

2009-02-13 Thread Mark Volkmann
On Fri, Feb 13, 2009 at 10:18 AM, Laurent PETIT wrote: > 2009/2/13 Mark Volkmann >> >> On Thu, Feb 12, 2009 at 5:09 PM, Laurent PETIT >> wrote: >> > In a nutshell (not tested, but nothing should miss, just typos if it >> > doesn't >> > work) : >> > >> > mkdir test-compile >> > cd test-compile >

Re: A stupid beginners question about Compile

2009-02-13 Thread Laurent PETIT
2009/2/13 Mark Volkmann > > On Thu, Feb 12, 2009 at 5:09 PM, Laurent PETIT > wrote: > > In a nutshell (not tested, but nothing should miss, just typos if it > doesn't > > work) : > > > > mkdir test-compile > > cd test-compile > > mkdir classes > > mkdir src > > mkdir src/echo > > echo "(ns echo.

Re: A stupid beginners question about Compile

2009-02-13 Thread Mark Volkmann
On Thu, Feb 12, 2009 at 5:09 PM, Laurent PETIT wrote: > In a nutshell (not tested, but nothing should miss, just typos if it doesn't > work) : > > mkdir test-compile > cd test-compile > mkdir classes > mkdir src > mkdir src/echo > echo "(ns echo.test) (defn echo [msg] msg)" > src/echo/test.clj >

Re: A stupid beginners question about Compile

2009-02-12 Thread Stephen C. Gilardi
On Feb 12, 2009, at 4:56 PM, anderspe wrote: I have tried to compile a simple "Hello World" but the closest a got was a class file, witch can't be used, just reports that Class Hello could not be found. I've seen this symptom before. The following rules may help: - The target directory for t

Re: A stupid beginners question about Compile

2009-02-12 Thread Laurent PETIT
In a nutshell (not tested, but nothing should miss, just typos if it doesn't work) : mkdir test-compile cd test-compile mkdir classes mkdir src mkdir src/echo echo "(ns echo.test) (defn echo [msg] msg)" > src/echo/test.clj java -cp path/to/clojure.jar:src/:classes/ clojure.lang.Repl user> (compile

Re: A stupid beginners question about Compile

2009-02-12 Thread Craig McDaniel
Have a look at how the clojure-contrib project is compiled. The build.xml file will help. --~--~-~--~~~---~--~~ 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