It's due to a type hint Rich put in a couple revisions ago to reduce
reflection in clojure.core. I've filed an issue for it, it will be
worked out in time.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Clojure" gro
On Feb 21, 2009, at 6:10 PM, Mark Volkmann wrote:
Thanks the suggestion. That works! However, it seems to me that
(read-line) should do the same thing. Is there a reason it doesn't?
There were a couple of discussions about this recently:
http://groups.google.com/group/clojure/search?group=cl
On Sat, Feb 21, 2009 at 4:48 PM, James Reeves
wrote:
>
> On Feb 21, 10:11 pm, Mark Volkmann wrote:
>> (print "Enter your name: ")
>> (flush)
>> (def nm (read-line))
>> (newline)
>> (println "Your name is" nm)
>>
>> The read-line throws java.lang.ClassCastException:
>> clojure.lang.LineNumberingP
On Feb 21, 10:11 pm, Mark Volkmann wrote:
> (print "Enter your name: ")
> (flush)
> (def nm (read-line))
> (newline)
> (println "Your name is" nm)
>
> The read-line throws java.lang.ClassCastException:
> clojure.lang.LineNumberingPushbackReader.
> Should it do that? I just want to read from stdin
(print "Enter your name: ")
(flush)
(def nm (read-line))
(newline)
(println "Your name is" nm)
The read-line throws java.lang.ClassCastException:
clojure.lang.LineNumberingPushbackReader.
Should it do that? I just want to read from stdin.
--
R. Mark Volkmann
Object Computing, Inc.
--~--~--