On 11/6/07, Bob Hutchison <[EMAIL PROTECTED]> wrote: > It isn't fixed in the ruby that ships with Leopard: > 1.8.6 (2007-06-07 patchlevel 36) [universal-darwin9.0]
Ugh. IIRC I checked it with the patch release after 36, and it was fixed there. > This hack will fix things. > > class Array > alias :naughty_shift :shift > def shift > result = self.first > self[0] = nil # This is the 'magic' > self.naughty_shift > result > end > end Note that this just _mostly_ fixes things. You still end up with array elements in memory carrying around Qnils, but most of the time that's good enough. Kirk Haines _______________________________________________ Mongrel-users mailing list [email protected] http://rubyforge.org/mailman/listinfo/mongrel-users
