[Issue 3263] Cannot use tuple foreach arguments in an array literal
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Oct 27 15:24:33 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3263
Shin Fujishiro <rsinfu at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |rsinfu at gmail.com
Resolution| |DUPLICATE
--- Comment #1 from Shin Fujishiro <rsinfu at gmail.com> 2010-10-27 15:23:44 PDT ---
Expansion works inside dynamic array literals, but doesn't inside array
initializers. The following works (both D1 & D2):
template Foo(Strings...)
{
const a2 = ([Strings])[]; // as an array literal
}
alias Foo!("one", "two") foo;
*** This issue has been marked as a duplicate of issue 1064 ***
--
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