It doesn't, but direct linking only affects invocations
> On 20 Nov 2015, at 15:21, Ambrose Bonnaire-Sergeant > <abonnaireserge...@gmail.com> wrote: > > Wait, how does the compiler know that *clojure-version* isn't a function? > > On Fri, Nov 20, 2015 at 10:01 AM, Nicola Mometto <brobro...@gmail.com> wrote: > *clojure-version* is not a function, it's not affected by direct linking > > > On 20 Nov 2015, at 14:56, Ambrose Bonnaire-Sergeant > > <abonnaireserge...@gmail.com> wrote: > > > > I'm missing something, alter-var-root'ing *clojure-version* works just fine > > when calling (clojure-version). > > > > (alter-var-root #'*clojure-version* assoc :qualifier "patched") > > (clojure-version) > > ;=> "1.8.0-patched" > > > > Thanks, > > Ambrose > > > > On Fri, Nov 20, 2015 at 1:24 AM, Ambrose Bonnaire-Sergeant > > <abonnaireserge...@gmail.com> wrote: > > I don't think CLJ-1845 had the intended effect. > > > > user=> (alter-var-root #'load (fn [f] (fn [& args] (prn "patched") (apply f > > args)))) > > #object[user$eval1241$fn__1242$fn__1243 0x1c857e6 > > "user$eval1241$fn__1242$fn__1243@1c857e6"] > > user=> (load) > > "patched" > > nil > > user=> (require 'clojure.core :reload) > > nil > > user=> (require 'clojure.tools.analyzer :reload) > > nil > > user=> (require 'clojure.tools.analyzer :reload-all) > > nil > > > > I was expected "patched" to be printed with each call to `load` via > > `require`. > > > > Do others observe this also? > > > > Thanks, > > Ambrose > > > > > > On Mon, Nov 16, 2015 at 9:32 AM, Alex Miller <a...@puredanger.com> wrote: > > Clojure 1.8.0-RC2 is now available. This build is a "release candidate"! We > > would appreciate any and all testing you can do on your own libraries or > > internal projects to find problems. > > > > Try it via > > • Download: > > https://repo1.maven.org/maven2/org/clojure/clojure/1.8.0-RC2 > > • Leiningen: [org.clojure/clojure "1.8.0-RC2"] > > Below are the changes since 1.8.0-RC1. See the full 1.8 change log here: > > https://github.com/clojure/clojure/blob/master/changes.md. > > • CLJ-1846 Fix VerifyError when primitive type hints are incorrect. > > These cases now throw compiler errors. > > • Example: (defn foo ^long [] 1) (Integer/bitCount ^int > > (foo)) > > • In this example, foo returns a long but is type hinted > > (incorrectly) as an int. This case will now throw a compilation error. The > > correct way to do this is with a cast: (Integer/bitCount (int (foo))) > > • CLJ-1825 Fix compilation errors on direct linking of anonymous > > recursive functions > > > > -- > > 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 > > --- > > You received this message because you are subscribed to the Google Groups > > "Clojure" group. > > To unsubscribe from this group and stop receiving emails from it, send an > > email to clojure+unsubscr...@googlegroups.com. > > For more options, visit https://groups.google.com/d/optout. > > > > > > > > -- > > 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 > > --- > > You received this message because you are subscribed to the Google Groups > > "Clojure" group. > > To unsubscribe from this group and stop receiving emails from it, send an > > email to clojure+unsubscr...@googlegroups.com. > > For more options, visit https://groups.google.com/d/optout. > > -- > 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 > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > > > -- > 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 > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.