Jarrett Billingsley wrote:
On Sat, Feb 21, 2009 at 5:47 PM, Andrei Alexandrescu
<[email protected]> wrote:
Yah, ref on the callee side, or the [] operator without any arguments on the
caller side.

Wait, what?  I wouldn't have expected anything but "ref type[n] foo"
on the function parameter to pass byref.  What are you saying here?

void foo(T)(T t) {}

int[5_000_000] i;
foo(i[]); // foo!(int[]) -- semi-by-reference
foo(i); // foo!(int[5_000_000]) -- by value

Reply via email to