[dmd-internals] Most important patches before release of DMD2.047

Don Clugston dclugston at googlemail.com
Wed Jun 9 02:50:19 PDT 2010


On 9 June 2010 11:04, Brad Roberts <braddr at puremagic.com> wrote:
> On 6/9/2010 1:57 AM, Don Clugston wrote:
>> On 9 June 2010 10:42, Brad Roberts <braddr at puremagic.com> wrote:
>>> I'd dearly love to see 3516 (struct dtors don't work for anything interesting)
>>> included, in that list.  It's rather embarrassing that struct copy ctor and dtor
>>> were added pretty much specifically to support making a smart pointer struct,
>>> but it's still not possible.
>>
>> Completely agree.
>>
>>> However, I fear that the fix for it is going to be rather intrusive and would
>>> probably be better off waiting for the subsequent release.
>>
>> If we can get a patch for it, I'd include it at the top of the list.
>> But my list was only bugs with patches ready.
>> _______________________________________________
>
> I decided to leave it for Walter. :(

So basically, CallExp needs to turn into   (auto tmp = CallExp,
tmp.~this() ); if it's returning a struct with a destructor, and the
return value isn't used. But currently, CallExp doesn't have any way
of knowing if its return value will be used.
Yeah, definitely one for Walter.


More information about the dmd-internals mailing list