On Sep 17, 9:15 pm, Allen Rohner <[EMAIL PROTECTED]> wrote:
> Ok, concrete.
>
> Here's one mistake I made the other day. I created a ref, and then
> forgot to access it using @. The example code is
>
> (def my_map (ref {:a 1, :b 2}))
> (def map_vals (vals my_map))
>
> $ java -cp clojure-clean.jar clojure.lang.Repl bad-ref.clj
> java.lang.IllegalArgumentException: Don't know how to create ISeq
> from: Ref
> at clojure.lang.RT.seqFrom(RT.java:465)
> at clojure.lang.RT.seq(RT.java:448)
> at clojure.lang.RT.vals(RT.java:473)
> at clojure.vals__470.invoke(boot.clj:893)
> at clojure.lang.AFn.applyToHelper(AFn.java:184)
> at clojure.lang.AFn.applyTo(AFn.java:175)
> at clojure.lang.Compiler$InvokeExpr.eval(Compiler.java:2589)
> at clojure.lang.Compiler$DefExpr.eval(Compiler.java:282)
> at clojure.lang.Compiler.eval(Compiler.java:3896)
> at clojure.lang.Compiler.load(Compiler.java:4192)
> The real code is complicated by the fact that I required several
> files. If you pay attention to the stack trace, you see that the code
> entered at start.clj. Then three files were required, but you can't
> tell which file or line blew up.
I've made some enhancements to the location info (rev 1031), see if
that helps.
Rich
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---