Array Operations: a[] + b[] etc.

Walter Bright newshound2 at digitalmars.com
Wed Nov 21 10:15:53 PST 2012


On 11/21/2012 10:02 AM, John Colvin wrote:
> My vision of how things could work:
> c = a[] opBinary b[];
> should be legal. It should create a new array that is then reference assigned to c.

This is not done because it puts excessive pressure on the garbage collector. 
Array ops do not allocate memory by design.



More information about the Digitalmars-d mailing list