From: Robert Klemme Date: 2008-06-26T21:26:46+09:00 Subject: Re: Is it ellegant to use a global variable to store a Logger object? 2008/6/26 Robert Dober : > On Wed, Jun 25, 2008 at 6:55 PM, Robert Klemme > wrote: >> 2008/6/25 Robert Dober : >>> Maybe I shall answer Robert's question at the same time ;) >>> >>> 41. A logging mixin >> >> That's a classical bug: off by one. :-) > > I fail to understand Robert, look at this IRB session, as you see I > have prepared for your mail ;) > > irb(main):009:0> 41.succ > => 43 > irb(main):010:0> 43.pred > => 41 > > irb(main):023:0> 42.class > => TheAnswerToTheMeaningOfLiveTheUniverseAndEverything > irb(main):024:0> 43.class > => Fixnum Amazing! And I thought I knew something about numbers - at least below 100. :-) > And what do you say now about the "Mannschaft" ;) They too were taking > "off by one" goal;) Um, yes. What an awful game. Cheers robert -- use.inject do |as, often| as.you_can - without end