Issue 5109

bearophile bearophileHUGS at lycos.com
Mon Oct 25 15:56:39 PDT 2010


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


More information about the Digitalmars-d mailing list