It looks like following not so well known bug
http://dev.clojure.org/jira/browse/CLJ-979

On Mon, Sep 22, 2014 at 8:55 AM, Peter Taoussanis <ptaoussa...@gmail.com> wrote:
> Hi all!
>
> Ran into some behaviour today that I wasn't expecting and am wondering if
> someone could shed some light.
>
> Steps to reproduce (reproducible with at least Clojure 1.4.0 and
> 1.7.0-alpha2):
> 1. Setup a namespace with `(defrecord Foo [x])`.
> 2. Call cider's `cider-load-current-buffer` in Emacs.
> 3. Evaluate `(compile '<the-ns>)` in that namespace.
>
> At this point, we have:
>
> (instance? Foo (Foo.  "bar")) => true
> (instance? Foo (->Foo "bar")) => false
>
> I wouldn't normally call `compile` like this, but I'm curious if someone has
> any idea what's actually happening? The `build-positional-factory` code
> seems to just call the `new` constructor anyway so it's not obvious to me
> why the behaviour would differ. Are the class files getting out of sync
> somehow?
>
> Thanks a lot, cheers! :-)
>
> --
> 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.

Reply via email to