newLISP Fan Club

Forum => newLISP in the real world => Topic started by: kanen on May 14, 2011, 11:24:00 PM

Title: (read-line) and CONTROL-D
Post by: kanen on May 14, 2011, 11:24:00 PM
What the ****?!?


(setf stopme nil)
(while (nil? stopme)
  (setf r (read-line))
  (if (find "exit" r) (setf stopme true))
  (println "Line: " r)
)


Run this. Type a few keys, hit ENTER.



Now, hit CONTROL-D



(be prepared to hit Control-Z and then kill newlisp)
Title: Re: (read-line) and CONTROL-D
Post by: Lutz on May 15, 2011, 07:18:49 AM
An uncleared EOF condition on the input stream in 'read-line'.



This is fixed here: http://www.newlisp.org/downloads/development/inprogress/
Title: Re: (read-line) and CONTROL-D
Post by: rickyboy on May 15, 2011, 12:51:22 PM
Wow, Lutz!  Very fast turnaround.  Obviously, California hasn't slowed you down. ;)  Thanks!  --Ricky
Title: Re: (read-line) and CONTROL-D
Post by: Lutz on May 15, 2011, 01:37:20 PM
Pasadena coffee shops keep me well caffeinated ;)
Title: Re: (read-line) and CONTROL-D
Post by: kanen on May 19, 2011, 08:29:35 PM
My goal is to have something I've requested or found referenced in every set of release notes since 2005...



Looks like I'm in 10.3.1 too! :)


Quote from: "Lutz"An uncleared EOF condition on the input stream in 'read-line'.



This is fixed here: http://www.newlisp.org/downloads/development/inprogress/