Gregory Brown wrote: > Markus Koenig wrote: > >> The user interface is the same as the Lisp program's, but omitting the >> parens. BTW, why does Highline lose when EOF is encountered? I really >> miss the Ctrl-D... > > Hmm... not exactly sure why this doesn't work. I'll try to dig through > HighLine and figure this out if I get some time this week, if James > doesn't beat me to the punch, that is :) This is what I get from HighLine 1.0.1: [...] /usr/lib/ruby/site_ruby/1.8/highline/question.rb:362:in `send': undefined method `strip' for nil:NilClass (NoMethodError) from /usr/lib/ruby/site_ruby/1.8/highline/question.rb:362:in `remove_whitespace' from /usr/lib/ruby/site_ruby/1.8/highline.rb:527:in `get_line' from /usr/lib/ruby/site_ruby/1.8/highline.rb:545:in `get_response' from /usr/lib/ruby/site_ruby/1.8/highline.rb:155:in `ask' from lispgame.rb:221 from lispgame.rb:219:in `loop' from lispgame.rb:219 In question.rb:362 the result of readline (highline.rb:528) or gets (highline.rb:533) is stripped. I guess the cleanest thing to do is just to raise EOFError if any of these methods returns nil. This wasn't that hard :) Regards, Markus