Re: deftype code reload oddity

2015-09-15 Thread Gregg Reynolds
Here's another bit of strangeness. I tried putting my interfaces file at the root (see https://github.com/migae/datastore/tree/master/src/clojure); this seems to work ok. Then I fooled around with profiles etc. to try to avoid having Interfaces.clj ever be reloaded - it's only needed once, for ao

Re: deftype code reload oddity

2015-09-12 Thread Gregg Reynolds
On Sat, Sep 12, 2015 at 7:17 AM, Alex Miller wrote: > This is a tricky area and one that has seen changes lately - what version > of Clojure are you using? > Clojure 1.7.0 Java HotSpot(TM) 64-Bit Server VM 1.8.0_45-b14 A little more background info in case it helps: I've got two gen-interfaces

Re: deftype code reload oddity

2015-09-12 Thread Alex Miller
This is a tricky area and one that has seen changes lately - what version of Clojure are you using? On Friday, September 11, 2015 at 10:42:32 PM UTC-5, Gregg Reynolds wrote: > > Here's something a little perplexing that I discovered by trial and error: > if you reload (using require :reload) a

deftype code reload oddity

2015-09-11 Thread Gregg Reynolds
Here's something a little perplexing that I discovered by trial and error: if you reload (using require :reload) a clj file containing a deftype implementing clojure interfaces (e.g. ISeq, etc.) plus some functions, the functions will be reloaded but not the deftype implementation code. That is,