Re: load-file within a do

2008-12-30 Thread Kees-Jochem Wehrmeijer
Ah of course. Thanks a lot, your explanation makes things a lot clearer! I guess because of the direct nature of the REPL I hadn't thought about compile time vs runtime, but that makes perfect sense. On Dec 29, 8:00 pm, Meikel Brandmeyer wrote: > Hi Kees-Jochem, > > Am 29.12.2008 um 20:37 schr

Re: load-file within a do

2008-12-29 Thread Meikel Brandmeyer
Hi Kees-Jochem, Am 29.12.2008 um 20:37 schrieb Kees-Jochem Wehrmeijer: I created a small file foo.clj with the following contents: (defn foo [] :bar) Then from a REPL I try the following: (do (load-file "foo.clj") (foo)) but this gives an error message: java.lang.Exception: Unable to resolve s

load-file within a do

2008-12-29 Thread Kees-Jochem Wehrmeijer
Hi everybody, I just got started with Clojure and I'm now trying to simultaneously learn Lisp and Java. My progress is slow, but I'm having a lot of fun. I hit a small roadblock though, because I can't figure out why calling load-file from within a do is behaving the way it is. I'm probably missi