From slices to perfect imitators: opByValue

Sönke Ludwig via Digitalmars-d digitalmars-d at puremagic.com
Thu May 8 09:49:23 PDT 2014


Am 08.05.2014 18:33, schrieb David Nadlinger:
> On Thursday, 8 May 2014 at 16:30:13 UTC, Sönke Ludwig wrote:
>> For what practical reason would that be the case? I know that the spec
>> states "undefined behavior", but AFAICS, there is neither an existing,
>> nor a theoretical reason, why this should fail:
>
> Compiler optimizations based on immutability.
>
> David

My point was just about const in particular, because RefCount doesn't 
mix well with immutable anyway (see previous post).


More information about the Digitalmars-d mailing list