[Issue 12313] Unneeded stack temporaries created by tuple foreach
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Mar 7 22:48:53 PST 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12313
--- Comment #5 from Kenji Hara <k.hara.pg at gmail.com> 2014-03-07 22:48:17 PST ---
(In reply to comment #4)
> foreach != tuple foreach
>
> latter is more like template declaration that gets instantiated for every tuple
> element as an argument
If you want to iterate the elements of the container (array, range, tuple, etc)
without copying, use 'ref'.
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list