digitalmars.D - Issue 5109
- bearophile (6/18) Oct 25 2010 Recently "galaxylang" has added an issue to Bugzilla, I have just writte...
- Andrei Alexandrescu (4/22) Oct 25 2010 It actually is, currently it takes a bit of effort to e.g pass to!int to...
Recently "galaxylang" has added an issue to Bugzilla, I have just written few
comments and suggestions there:
http://d.puremagic.com/issues/show_bug.cgi?id=5109
That issue 5109 contains three things (it's usually much better to put a single
request/bug for each bugzilla entry). It contains two forward reference
bugs/enhancement requests (one of them is probably already present in
Bugzilla), and the third thing is an enhancement request:
2:
add parital template feature
struct P(A...)
{
}
alias P!int P1;
P1 p1;//instance of P!int
alias P1!long P2;
P2 p2;//intance of P!(int,long)
this feature will make D has the power to write a template functional
library,and change D into a high-levle program language.
Is this kind of template currying a good idea? Are you able to find good usages
for it?
Bye,
bearophile
Oct 25 2010
On 10/25/10 17:56 CDT, bearophile wrote:Recently "galaxylang" has added an issue to Bugzilla, I have just written few comments and suggestions there: http://d.puremagic.com/issues/show_bug.cgi?id=5109 That issue 5109 contains three things (it's usually much better to put a single request/bug for each bugzilla entry). It contains two forward reference bugs/enhancement requests (one of them is probably already present in Bugzilla), and the third thing is an enhancement request:It actually is, currently it takes a bit of effort to e.g pass to!int to map. It would be nice if it were all automatic. Andrei2: add parital template feature struct P(A...) { } alias P!int P1; P1 p1;//instance of P!int alias P1!long P2; P2 p2;//intance of P!(int,long) this feature will make D has the power to write a template functional library,and change D into a high-levle program language.Is this kind of template currying a good idea? Are you able to find good usages for it? Bye, bearophile
Oct 25 2010








Andrei Alexandrescu <SeeWebsiteForEmail erdani.org>