From: Tony Arcieri Date: 2008-03-30T04:49:07+09:00 Subject: Re: What's going on here? (weird Ruby 1.9 incompatibility) ------=_Part_15144_12667287.1206820144682 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Sat, Mar 29, 2008 at 12:08 PM, Tony Arcieri wrote: > Ruby 1.8 prints: > "yay" > > Ruby 1.9 complains (on the p b.b line): > 14:in `
': wrong number of arguments (1 for 0) (ArgumentError) > I tried changing A to have the following definition: class A def a(*args) args end end Now: Ruby 1.8: [] or if you call b.b(1,2,3): [1,2,3] Ruby 1.9: [nil] or if you call b.b(1,2,3): [1] Is this a bug? -- Tony Arcieri medioh.com ------=_Part_15144_12667287.1206820144682--