From: "David A. Black" Date: 2004-05-31T08:29:53+09:00 Subject: Re: [BUG?] Behavior of application changes when adding non-relevant puts On Mon, 31 May 2004, David A. Black wrote: > Hi -- > > On Mon, 31 May 2004, Joao Pedrosa wrote: > > > This line: > > basicthing.rb:254> words.shift > > Deletes the words before they could used as commands. > > The @actions is a Hash, which means that what changes > > from an execution to another is the order of its > > elements. The "Norden" action may come after the > > words.first is nil. > > I don't think that happens though, because the previous > line is: > > next unless cmd[:verb].include? words.first > > so if 'n[orden]' isn't part of cmd, the shifting should > not happen. Except... 'n' is an abbreviation of another command (nimm), so the shift *does* happen, in the case of 'n', even if it shouldn't. So your analysis is right, and there's one 'n' option too many :-) Fascinating Heisenbug -- the size of the file seems to change the hash return order, which in turn determines whether this problem will or will not bite. David -- David A. Black dblack@wobblini.net