convert ... to array

Qian Xu qian.xu at
Tue Oct 20 02:50:40 PDT 2009

Hi All,

a function is declared as follows:

  class Foo
    final Value array(...)

I can pass any number of parameters to this method array() like:

  auto foo = new Foo;
  foo.array(1, 2, 3);

But if I have only an array in hand, how to pass it to this method? Is it

  int[] myarray = [1, 2, 3];
  // how to pass "myarray" to foo.array(...)

Best regards

More information about the Digitalmars-d-learn mailing list