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

Dukc ajieskola at gmail.com
Thu Aug 8 12:41:12 UTC 2019


On Thursday, 8 August 2019 at 12:36:07 UTC, Andrea Fontana wrote:
>
> 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!

Um, I understood that this is what you PR finally did, but didn't 
you intend to disable foreach-ref with rvalues at some point 
(when Andrei made the comment I mentioned)?


More information about the Digitalmars-d mailing list