[Issue 4536] Typetuples (T...) should have an .init member

2012-02-18 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4536



--- Comment #5 from github-bugzi...@puremagic.com 2012-02-18 20:36:14 PST ---
Commit pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/809ce857f166a48a05560da95a11fb75fcbb2c1d
Merge pull request #719 from yebblies/issue4536

Issue 4536 - Typetuples (T...) should have an .init member

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 4536] Typetuples (T...) should have an .init member

2012-02-18 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4536


yebblies yebbl...@gmail.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 4536] Typetuples (T...) should have an .init member

2012-02-14 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4536


yebblies yebbl...@gmail.com changed:

   What|Removed |Added

   Keywords||pull, rejects-valid
 AssignedTo|nob...@puremagic.com|yebbl...@gmail.com


--- Comment #4 from yebblies yebbl...@gmail.com 2012-02-15 15:24:34 EST ---
https://github.com/D-Programming-Language/dmd/pull/719

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 4536] Typetuples (T...) should have an .init member

2011-06-15 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4536


yebblies yebbl...@gmail.com changed:

   What|Removed |Added

 CC||yebbl...@gmail.com


--- Comment #2 from yebblies yebbl...@gmail.com 2011-06-15 08:10:41 PDT ---
What should .init do for a TypeTuple like this?
TypeTuple!(3, int).init = ?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 4536] Typetuples (T...) should have an .init member

2011-06-15 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4536


bearophile_h...@eml.cc changed:

   What|Removed |Added

 CC||bearophile_h...@eml.cc


--- Comment #3 from bearophile_h...@eml.cc 2011-06-15 09:48:06 PDT ---
(In reply to comment #2)
 What should .init do for a TypeTuple like this?
 TypeTuple!(3, int).init = ?

I think raise a syntax error (or return a TypeTuple!(3, 0)).

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 4536] Typetuples (T...) should have an .init member

2010-08-19 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4536



--- Comment #1 from Philippe Sigaud philippe.sig...@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: ---