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 source file than you think it is?
>
> Once I fixed that, the code works fine, at least insofar as the score and
> rank vars are accessible.
>
> Stu

My apologies Stu, it looks like a messed up the structure a bit when I
was attempting to shorten the code enough to mail out, it should have
the correct amount of apologies.

On a side note, I was able to find out what was going wrong. Turns out
I shouldn't have been declaring the protocol in a separate namespace
as the record. (I was declaring "Searcher" in clomoios.core and
"ContextSearcher" in clomoios.contextsearcher). This worked for
actually running the file, but not for REPL use. Once I moved the
protocol declaration to clomoios.contextsearcher everything worked as
expected.

Thanks!

- 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 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

Reply via email to