dcollections 1.0 and 2.0a beta released

Pelle pelle.mansson at gmail.com
Sat May 22 06:16:53 PDT 2010


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
}


More information about the Digitalmars-d-announce mailing list