On Mon, Jun 22, 2009 at 7:15 AM, Thibaut Barrère
<thibaut.barr...@gmail.com> wrote:
>
> I read that I should be able to change *compile-path* (I'd like to set
> it to the same folder where the .clj files is).
>
> Is it possible and how can I achieve that ?

Yup, you can either using binding to create a thread-local value for
*compile-path*, or use set! to alter the root binding. Usage of set!
is usually discouraged outside of the REPL, I believe, but it's an
option.

user=> *compile-path*
"classes"
user=> (binding [*compile-path* "src"] *compile-path*)
"src"
user=> *compile-path*
"classes"
user=> (set! *compile-path* "src")
"src"
user=> *compile-path*
"src"

HTH,

- J.

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