← Back to index
|
Original Bugzilla link
Bug 3045 – Can't use ref with foreach on tuple
Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Mac OS X
Creation time
2009-06-01T22:01:00Z
Last change time
2015-06-09T01:27:57Z
Keywords
rejects-valid
Assigned to
bugzilla
Creator
sean
Comments
Comment #0
by sean — 2009-06-01T22:01:24Z
This code should compile: void fn(T...)( ref T args ) { foreach( ref e; args ) e = e.init; } void main() { int x, y; fn( x, y ); }
Comment #1
by dsimcha — 2009-06-02T05:51:21Z
*** This issue has been marked as a duplicate of issue 2411 ***