On Jan 18, 11:48 am, wubbie <sunj...@gmail.com> wrote: > Hi, > Just tried a piece of code from here... > (defn my-deref [x] > (if (or (isa? clojure.lang.Ref (class x)) > (isa? clojure.lang.Agent (class x)) > (isa? clojure.lang.Atom (class x))) > @x > x)) > java.lang.ClassNotFoundException: clojure.lang.Atom (NO_SOURCE_FILE: > 22) > > But I think I used atom before and working... > If my version is older I may have to download newer one. > I think I downloaded about a month ago.
Atoms used to be implemented using java.util.concurrent.AtomicReference before the clojure.lang.Atom class was created. If you don't have the file Atom.java in clojure/src/ jvm/clojure/lang, you can try using the old class name in the definition of my-deref. Personally, I think it would be better to update to a newer version of clojure because you'll get bug fixes and other recent improvements. -- Nathan --~--~---------~--~----~------------~-------~--~----~ 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 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 -~----------~----~----~----~------~----~------~--~---