Array Operations: a[] + b[] etc.
John Colvin
john.loughran.colvin at gmail.com
Wed Nov 21 10:20:17 PST 2012
On Wednesday, 21 November 2012 at 18:15:51 UTC, Walter Bright
wrote:
> 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.
Fair enough. When you say excessive pressure, is that performance
pressure or design pressure?
More information about the Digitalmars-d
mailing list