[Issue 1503] Type aliases and tuples of template instances
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Oct 11 12:36:51 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=1503
Manuel König <manuelk89 at gmx.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |manuelk89 at gmx.net
Resolution| |DUPLICATE
OS/Version|Windows |All
--- Comment #3 from Manuel König <manuelk89 at gmx.net> 2010-10-11 12:36:17 PDT ---
The typeof(foos[0].Type) x = 20; trick doesn't work for me, but aliasing the
array index expr works. This is a duplicate of #3085, which means no
declaration of the form
a[0].t x;
is possible because the parser does not accept that syntax, even when t is a
type. Your alias trick bypasses that limitation, that's why it works.
*** This issue has been marked as a duplicate of issue 3085 ***
--
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