Ok that was frustrating! I had a docstring like below which apparently is not allowed.

(defrecord MyFoo [x y]
  IFoo
  (foo "returns arg" [x] x)) ;


phew... :)

thanks!

Jim





On 18/11/12 22:11, Karsten Schmidt wrote:
It might mean you're probably having a typo somewhere you're trying to
extend a protocol like so:

(defprotocol IFoo
   (foo [x]))

(defrecord MyFoo [x y]
   IFoo
   (fooo [x] x)) ; note misspelled foo

;; CompilerException java.lang.IllegalArgumentException:
;; Can't define method not in interfaces: fooo, compiling:(NO_SOURCE_PATH:1)

Correct? K.

On 18 November 2012 21:16, Jim - FooBar(); <[email protected]> wrote:
I'm struggling to find an explanation for this...

what on earth is this? what does it mean?

Can anyone clarify where this exception comes from?

Jim

--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
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 post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to