Hello guys,I've read the Stuart Halloway's book, worked through it, and I've
being programming in clojure in the last few weeks.
I'm using Clojure 1.0.1-alpha-SNAPSHOT with emacs + slime + swank.

Until now, everything went smoothly, however as my code went bigger it
become harder to debug obviously, when I have a bug, say in a file called
example.clj:

; trying to get the first element of an unordered set
(nth (clojure.set/select #(= 0 (mod % 2)) #{1 2 5 10}) 0)

When I loaded the file and run the code, i was expecting the same answer as
i would get by running the same line in the REPL:

java.lang.UnsupportedOperationException: nth not supported on this type:
PersistentHashSet (NO_SOURCE_FILE:0)

However, the message i got was this one:
java.lang.RuntimeException: java.lang.ClassCastException:
clojure.lang.LazySeq (NO_SOURCE_FILE:0)

Why do I get different messages running from the REPL or loading from a clj
file ?
Shouldn't I have (in the message returned) the line where the error occurred
? and the stack trace ? Without the line number, things are wayy harder :)

At some point (i've no idea why)
I even got the following message from REPL (while not interacting with it):

Invalid memory access of location 0x4 eip=0x13a9be5
Process inferior-lisp bus error

Any clues ?
Thanks in advance,
Jose

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