Problems accessing records declared in a namespace in a REPL

2010-05-10 Thread Lee Hinman
I'm having a difficult time referencing a protocol in the user namespace, I have the following code: (ns clomoios.contextsearcher) (defprotocol Searcher (score [this term text] Score this text in similarity) (rank [this term text] Rank sentences in this text)) (defrecord ContextSearcher

Re: Problems accessing records declared in a namespace in a REPL

2010-05-10 Thread Stuart Halloway
Hi Lee, Your extend-protocol call is incorrectly parenthesized (rank is outside the body of the form). This means that use should blow up because the source is invalid. Maybe your use is reading a different source file than you think it is? Once I fixed that, the code works fine, at

Re: Problems accessing records declared in a namespace in a REPL

2010-05-10 Thread Lee Hinman
it should have the correct amount of apologies. Err...what I meant to say was the correct amount of parentheses, not apologies. - Lee -- 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

Re: Problems accessing records declared in a namespace in a REPL

2010-05-10 Thread Lee Hinman
On Mon, May 10, 2010 at 6:06 AM, Stuart Halloway stuart.hallo...@gmail.com wrote: Hi Lee, Your extend-protocol call is incorrectly parenthesized (rank is outside the body of the form). This means that use should blow up because the source is invalid. Maybe your use is reading a different