Array efficiency & rendering buffers

Derek Parnell derek at psych.ward
Thu Jun 8 00:16:37 PDT 2006


On Thu, 8 Jun 2006 07:11:25 +0000 (UTC), Henrik Eneroth wrote:


> On a side note, I realised that using the += operator with a dynamic array
> length property didn't work. I guess the (a = a + 1) <=> (a += 1) rationale
> doesn't work on arrays (since b.length = b.length + 1 does indeed work, whereas
> b.length += 1 does not). Wouldn't that be neat though?

Yes.

I believe that to do so would add a measure of complexity to the compiler
and Walter does not want to tackle this issue just yet. But maybe for a
v2.0 release ;-)

-- 
Derek
(skype: derek.j.parnell)
Melbourne, Australia
"Down with mediocrity!"
8/06/2006 5:15:19 PM



More information about the Digitalmars-d-learn mailing list