Re: simple I/O issue

2009-02-21 Thread Rayne
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

Re: simple I/O issue

2009-02-21 Thread Stephen C. Gilardi
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

Re: simple I/O issue

2009-02-21 Thread Mark Volkmann
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

Re: simple I/O issue

2009-02-21 Thread James Reeves
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

simple I/O issue

2009-02-21 Thread Mark Volkmann
(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. --~--~--