From: "David A. Black" Date: 2008-10-01T02:24:08+09:00 Subject: Re: Real world ruby programs to learn from Hi -- On Tue, 30 Sep 2008, Lex Williams wrote: > Robert Klemme wrote: >> 2008/9/30 Fernando Perez : >>> Your link seems very interesting and cool to learn from and can very >>> very helpful to jump from one language to another. >> >> I had a quick look at >> http://pleac.sourceforge.net/pleac_ruby/processmanagementetc.html and >> I must say this is far from correct or ideal. Issues I have spotted >> on first check: >> >> readme = IO.popen("ls") # does not use block form >> >> $stdout = writeme # must be $stdout.reopen(writeme) >> >> Process.waitpid(pid, 0) # should come after the read loop otherwise >> deadlock may occur >> >> Kind regards >> >> robert > > Robert , pleac is "a work in progress" . Anyone can make contributions > to it . It would be great if you would submit corrections to bugs you > found , if you can spare the time , of course . I submitted some suggestions a few years ago, I think involving switching something so that it used a block, and I was told that that wouldn't be good because it wasn't similar enough to other languages to compare. I got the impression that pleac was mostly Perl being written in a variety of languages, but I haven't looked at it in a while. David -- Rails training from David A. Black and Ruby Power and Light: Intro to Ruby on Rails January 12-15 Fort Lauderdale, FL Advancing with Rails January 19-22 Fort Lauderdale, FL * * Co-taught with Patrick Ewing! See http://www.rubypal.com for details and updates!