Hi Bill,

I think "compile" calls "load-lib", or something like that, so it
assumes there's a source file somewhere.

-Stuart Sierra


On Dec 21, 3:19 pm, ".Bill Smith" <william.m.sm...@gmail.com> wrote:
> Is this a valid thing to do from the REPL?
>
> $ java -jar clojure.jar
> Clojure
> user=> (ns clojure.examples.hello
>     (:gen-class))
>
> (defn -main
>   [greetee]
>   (println (str "Hello " greetee "!")))
>
> nil
> clojure.examples.hello=> #'clojure.examples.hello/-main
> clojure.examples.hello=> (compile 'clojure.examples.hello)
> java.io.FileNotFoundException: Could not locate clojure/examples/
> hello__init.class or clojure/examples/hello.clj on classpath:
> (NO_SOURCE_FILE:0)
> clojure.examples.hello=>
>
> I'm running rev 1180 of clojure and rev 320 of clojure-contrib.
--~--~---------~--~----~------------~-------~--~----~
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
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