From: Nobuyoshi Nakada Date: 2008-10-31T23:40:55+09:00 Subject: [ruby-core:19664] Re: Odd TypeError in inject (1.9.1 preview 1) Hi, At Fri, 31 Oct 2008 23:17:47 +0900, Jacob Fugal wrote in [ruby-core:19663]: > >> [].inject(0) > >>> > >> TypeError: 0 is not a symbol > > from (irb):4:in `inject' > > from (irb):4 > > from /usr/local/bin/irb19:12:in `
' > > Seems to me it's trying to treat 0 as a symbol-to-procable block parameter, > then failing during the symbol-to-proc conversion. Still a bug, though, IMO. Then what do you expect to be called? -- Nobu Nakada