Partially instantiating templates?

Magnus Lie Hetland magnus at hetland.org
Tue Feb 1 01:25:36 PST 2011


On 2011-02-01 10:11:53 +0100, Magnus Lie Hetland said:

> On 2011-01-31 22:21:40 +0100, bearophile said:
> 
>> Magnus Lie Hetland:
> [snip]
>>> I'm accustomed to is the ability to
>>> assign to multiple variables, such as
>>> 
>>> arg, val = minArg(...)
>>> 
>>> (Yeah, I'm a Python guy... ;)
>> 
>> I will eventually add a detailed enhancement request on this topic.
> 
> Great! I think this is really useful -- also for swapping things around 
> (a, b = b, a). For multiple return values it makes a huge difference, 
> IMO.

Saw your post on digitalmars.D now, about the currying of templates 
(i.e., the main topic here). I guess perhaps that was what you were 
talking about?

That would certainly be great, too :)

-- 
Magnus Lie Hetland
http://hetland.org



More information about the Digitalmars-d-learn mailing list