Re: clojure can't see a method in my protocol

2010-12-31 Thread Stuart Halloway
Ken, Classloader visibility (http://dev.clojure.org/jira/browse/CLJ-371) is one possible point of confusion. If you have an AOT-compiled class, you can't replace it from the REPL which works from a child classloader. This is "correct" from a Java perspective, and easy enough to deal with one yo

Re: clojure can't see a method in my protocol

2010-12-30 Thread Jarl Haggerty
I didn't think it was a problem with the clojure version because I was using the maven plugin and tried several versions, but when I got to my laptop the next day and ran the exact same programs and everything worked just fine. At this point my plan is to delete my maven repositories and if that d

Re: clojure can't see a method in my protocol

2010-12-30 Thread Ken Wesson
On Thu, Dec 30, 2010 at 7:41 PM, André Thieme wrote: > Do you observe this in a fresh Clojure? > I ran into something similar, but with definterface. > I had a definterface form and later added new functions to it, which I > could not implement before restarting the JVM, as the interface has > alr

Re: clojure can't see a method in my protocol

2010-12-30 Thread André Thieme
Am 30.12.2010 07:54, schrieb Jarl Haggerty: This code, (defprotocol Matrix (matrix-get [this c r])) (deftype Matrix2D [data height width] Matrix (matrix-get [this r c] 1)) Gives me this error Exception in thread "main" java.lang.IllegalArgumentException: Can't define method not in in

clojure can't see a method in my protocol

2010-12-29 Thread Jarl Haggerty
This code, (defprotocol Matrix (matrix-get [this c r])) (deftype Matrix2D [data height width] Matrix (matrix-get [this r c] 1)) Gives me this error Exception in thread "main" java.lang.IllegalArgumentException: Can't define method not in interfaces: matrix_get (core.clj:6) at cloj