Re: A problem about position of function used by binding

2017-02-07 Thread guid
@Matching Socks, thank you very much. -- 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 unsubscr

Re: A problem about position of function used by binding

2017-02-06 Thread guid
James, thank you very much Yes, I can fix it by using ^:dynamic or using #'test1 in test4, but I want to know what happened when I call test4. >so it'll optimise out the var for performance. if you mean it will not check bounding list when I call test1 within test4 Does any document or book ca

A problem about position of function used by binding

2017-02-06 Thread guid
hello everyone I have a problem about binding function in clojure1.8. when I changed position of function which call a bound function I got different result. If I define test4 (call test1 within it) before test1, binding would not work (declare test1) (defn test2 [](prn "test2")) (defn tes