On 05/22/2010 01:28 PM, bearophile wrote:
Pelle:
Yes, it works, but it doesn't gain anything from it, which is what I
said. :)

Then what you have said was useless.

Bye,
bearophile

How so? Passing by reference is slower, and sometimes completely meaningless. Therefore, having a rule that requires passing by ref is not a good.

Also:

int[] get_xs() { return new int[](100); }

void main() {
    get_xs.inc_all;

    get_xs.inc_all_by_ref; // Error: get_xs() is not an lvalue
}

Reply via email to