On 9 jan, 17:00, Rich Hickey <richhic...@gmail.com> wrote: > Your initial presumption is not correct. All top-level expressions are > compiled and will be evaluated on load. It is true that compilation > supports a same-world model, and evaluates the file while compiling > (in order to ensure declarations and macro definitions are available > for subsequent code).
My apologies, you are right, I'm wrong. Maybe I should not do tests at 2 a.m. that I'm then unable to reproduce when I'm really awaken :-) > You can avoid evaluation of expressions during > compilation conditionally using *compile-files*: Thanks for this. But for my problem at hand, I'm not in the position of the clojure user, I'm in the position of the clojure IDE developer, thinking about the possibility to incorporate automatic lib compilation on behalf of the IDE user. I wanted to provide that by starting -in my IDE and under the hoods- a clojure environment in a separate jvm, solely dedicated to compilation, code completion, ... . But I now think I can't do that reliably if when I'm trying to compile from the IDE a plugin, popups, Swing JFrames, ... start to jump on the face of the user because there is executable code in some files the IDE is automatically compiling ! ;-) ;-) I don't think of another alternative, yet :-( If some of you can give me ideas, you're welcome ! > So I'm not sure how you concluded that expressions aren't evaluated - > they are. If you are not seeing that please try to isolate for a bug > report. But, you must note that loading (and thus its effects) will > happen only once, and that loading might not be happening when you > think, i.e. load/require are not "run": Yes, maybe that can explain my problem ? -- Laurent --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---