From: Glen Holcomb Date: 2007-09-14T03:47:02+09:00 Subject: Re: undefined method `+' for nil:NilClass (NoMeth ------=_Part_22048_18029682.1189709219911 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On 9/13/07, Mahen Surinam wrote: > > Gareth Adams wrote: > > Mahen Surinam gmail.com> writes: > >> > >> [.. snip ..] > > > > The error you were getting is because $Oldtext3 is not the same as > > $OldText3 > > > > However, all of the previous replies highlight other issues which you > > should > > address in your code - the biggest of which (in my opinion) is using > > globals for > > a task which only ever stays in one scope. > > > > Gareth > > I meant this code: > > > array = [] > char = "a" > > 0.upto(25) do > array << char > array << array[0] + char > char = char.next > end > -- > Posted via http://www.ruby-forum.com/. > > I'm not sure what would be causing that. When I run just that code from in irb I don't see any huge spikes in memory usage. -- "Hey brother Christian with your high and mighty errand, Your actions speak so loud, I can't hear a word you're saying." -Greg Graffin (Bad Religion) ------=_Part_22048_18029682.1189709219911--