D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.

Issue 7004

Summary: Iterating tuple with index which explicitly typed as size_t causes an error
Product: D Reporter: Kenji Hara <k.hara.pg>
Component: dmdAssignee: No Owner <nobody>
Status: RESOLVED FIXED
Severity: normal CC: bugzilla
Priority: P2 Keywords: patch, rejects-valid
Version: D2
Hardware: All
OS: All

Description Kenji Hara 2011年11月25日 01:33:33 UTC
void f(A...)(A args)
{
 foreach (i, e; args){} // OK
 foreach (uint i, e; args){} // OK
 foreach (size_t i, e; args){} // NG
}
void main()
{
 f(1, 3.14);
}
Comment 1 Kenji Hara 2011年11月25日 01:44:29 UTC
D2 patch:
https://github.com/D-Programming-Language/dmd/pull/533 

AltStyle によって変換されたページ (->オリジナル) /