[Issue 4536] Typetuples (T...) should have an .init member
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Aug 19 13:35:15 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4536
--- Comment #1 from Philippe Sigaud <philippe.sigaud at gmail.com> 2010-08-19 22:35:10 CEST ---
(In reply to comment #0)
> template Init(T...)
> {
> alias (Tuple!T.init).expand Init;
> }
Hmm, my mistake, the previous version doesn't work. I'm pretty sure it used to,
since I was using it in my code.
Anyway, here is a far more simple version, no dependency:
template Init(T...)
{
T Init;
}
a initialized T is correctly created. I still think .init should work like this
for typetuples.
--
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