Re: [jruby-dev] Simplifying block yield path

2007-06-30 Thread Charles Oliver Nutter
Charles Oliver Nutter wrote: Attached is a patch that alters yield to always accept IRubyObject[], like a normal call, and changes all callers and implementations to handle that fact. There are ups and downs to this: How frustrating. It seems the downs are greater than I realized, and this ac

Re: [jruby-dev] Simplifying block yield path

2007-06-29 Thread Charles Oliver Nutter
Charles Oliver Nutter wrote: Attached is a patch that alters yield to always accept IRubyObject[], like a normal call, and changes all callers and implementations to handle that fact. There are ups and downs to this: I committed the patch; I'm trying to work the kinks out of the compilation p

[jruby-dev] Simplifying block yield path

2007-06-29 Thread Charles Oliver Nutter
I have always, as have many of you, hated the fact that Block.yield accepts a RubyArray. There are reasons for this, though they're not particularly good.. When yielding values to a block, if you yield an array directly it will be implicitly splatted into the target arguments. It's somewhat i