Hi,

In message "[ruby-talk:16476] C-extension question"
    on 01/06/15, "Christian Szegedy" <szegedy / addcom.de> writes:

|> rb_yield(rb_ary_new3(3, INT2FIX(1), INT2FIX(2), INT2FIX(3)));
|
|Ok, but what if I would like to pass one variable which happens to be an array?
|
|Does the compiler first look whether the block expects one or more variables, and
|assumes that rb_yield is called with an array parameter in the latter case?

There's no difference in Ruby between passing three values and passing
an array with three elements, i.e.

  yield 1,2,3

is the shorter form of

  yield [1,2,3]

So is in the C extension too.
							matz.