Hi there! I'm a completely new newbie in the clojure sphere - old dog in Java and a handful of other languages. But Clojure is my first (new) functional language, and I'm very excited about it - complements on your word Rich et. al.! :-)
To learn clojure I've started with the (beta) book "Seven Languages in Seven Weeks" by Bruce Tate (pragprog.com) - great book by the way. He's got a section called "defrecord and protocols" where he's got this example: (ns tate.compass) (defprotocol Compass (direction [c]) (left [c]) (right [c])) The problem for me is this: When I run the code I get this error message from the "REPL": java.lang.Exception: Unable to resolve symbol: defprotocol in this context (NO_SOURCE_FILE:4) I'm using the stable version of clojure 1.1 and clojure contrib 1.1. I'm on OSX 10.6.4 and Apple JDK 1.6.0_20-b02-279-10M3065. Please help! I'm stuck, and I don't want to procede (for too long) until I figure out why I get this error ;) Thanks in advance. Kind regards, Henrik Mohr -- 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