From: Robert Klemme Date: 2005-02-18T20:04:51+09:00 Subject: Re: What to do when adding a comment makes your program behave differently??? "Erik Terpstra" schrieb im Newsbeitrag news:4215cb12$0$28982$e4fe514c@news.xs4all.nl... > Hi, > > I a have built a program (433 lines) which takes a file as an argument, > processes it and provides its result to STDOUT. > > When I add a comment (just a '#' character will do) below the last line > of the program, it works fine. > > When I remove the comment it behaves differently, the result is > incorrect but Ruby does not give an error or a warning whatsoever. (I > don't have any rescue statements in my program). > > What can I do right now? (Except for switching to another language ;-) > > TIA, > > Erik. > > P.S.: I am willing to send my code, but I expect it will work fine > elsewhere because it is probably a GC/timing related Ruby bug. With that little information nobody really can help you with this. Please post code (if it's larger, you might want to use a public pasting board such as http://rafb.net/paste/ ) and probably your input file. Kind regards robert