On Mon, 02 Jun 2014 10:47:56 -0400, Dicebot <[email protected]> wrote:

On Monday, 2 June 2014 at 14:16:50 UTC, Steven Schveighoffer
wrote:
On Fri, 30 May 2014 22:40:29 -0400, Martin Nowak <[email protected]> wrote:

On Thursday, 29 May 2014 at 15:28:28 UTC, safety0ff wrote:
If would be nice if Don could elaborate on his comment in bug #6498 (https://issues.dlang.org/show_bug.cgi?id=6498#c1)

What is really needed is the ability to update variables in place.
Currently every mutation allocates a new value.

Wouldn't ref-counting actually help this?

-Steve

You don't need to optimize with ref-counting if you don't
allocate new instances at all ;)

Sure, but if it's a case of re-implementing CTFE from the ground up, or changing the memory allocator, which is easier to make happen first? Seriously speaking from ignorance, I have no idea.

Note, I think Ref-counting will still help even when ++x doesn't allocate.

-Steve

Reply via email to