<div dir="ltr"><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Wed, 5 Mar 2025 at 17:31, Per Nordlöw via Digitalmars-d <<a href="mailto:digitalmars-d@puremagic.com">digitalmars-d@puremagic.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Tuesday, 4 March 2025 at 12:22:36 UTC, Manu wrote:<br>
>> Tried converting a couple of usages of `emplace` and <br>
>> `moveEmplace` in a repo of mine and discovered that I'm <br>
>> missing a way to express<br>
>><br>
>> `moveEmplace(x, y)`<br>
>><br>
>> as<br>
>><br>
>> `new(y) typeof(y)(__rvalue(x))`<br>
>><br>
>> . This doesn't always work eventough `y` being assignable from <br>
>> `x`.<br>
>><br>
><br>
> Is it this issue: <a href="https://github.com/dlang/dmd/issues/20950" rel="noreferrer" target="_blank">https://github.com/dlang/dmd/issues/20950</a> ??<br>
<br>
Yes, it is. Thanks.<br>
</blockquote><div><br></div><div>Walter seems preoccupied at the moment, and I've been working on the move semantics stuff. If you want to have a go at this bug, that'd be really cool. I imagine it's probably a trivial fix; finding it is always the hard part :P</div><div>I don't know DMD well enough to have any intuition for the codebase, so everything takes me forever to isolate...</div></div></div>