DIP 1022--foreach auto ref--Community Review Round 1

Andrea Fontana nospam at example.com
Thu Aug 8 12:36:07 UTC 2019


On Thursday, 8 August 2019 at 12:13:35 UTC, Dukc wrote:
> On Thursday, 8 August 2019 at 12:10:09 UTC, Mike Parker wrote:
>> This is the feedback thread for the first round of Community 
>> Review for DIP 1022, "foreach auto ref":
>
> Author here, AMA/Destroy!

Just a note: the patch I submitted aimed to fix a "lifecycle" 
problem, I wasn't trying to fix the behaviour. foreach+ref with 
rvalues was creating a copy of each element without calling its 
dtor.

Good work, I hope this dip will be approved!



More information about the Digitalmars-d mailing list