[Issue 3045] New: Can't use ref with foreach on tuple
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jun 1 22:01:25 PDT 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3045
Summary: Can't use ref with foreach on tuple
Product: D
Version: 2.030
Platform: Other
OS/Version: Mac OS X
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: sean at invisibleduck.org
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 );
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list