[Ironruby-core] Code Review: RhsArg

Tomas Matousek Tomas.Matousek at microsoft.com
Wed Sep 10 13:43:48 EDT 2008


tfpt review "/shelveset:RhsArg;REDMOND\tomat"

  Implements block dispatch for R(N, *, =) case, i.e. N arguments, a splat argument and a right hand side of assignment are passed to a block.
  Exxample:

  class C
    define_method('[]=') { |a,b,c| }
  end

  c = C.new
  c[1,*[2]] = 3

Tomas

-------------- next part --------------
A non-text attachment was scrubbed...
Name: RhsArg.diff
Type: application/octet-stream
Size: 30743 bytes
Desc: RhsArg.diff
URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20080910/cb5bccb5/attachment-0001.obj>


More information about the Ironruby-core mailing list