Infer function template parameters

Simen Kjaeraas simen.kjaras at gmail.com
Sat Sep 22 00:49:03 PDT 2012


On 2012-09-21, 21:29, Jonas Drewsen wrote:

> A mentioned in the proposal (albeit not very clear) it requires  
> non-templated function definitions to include both type and param names.  
> If only one name is provided in a definition is always a param name.  
> Unfortunately this is a breaking change for some code and that does  
> speak against the proposal.

Not only is it a breaking change, it breaks one of the basic design
desiderata of D - if it's valid C it either fails to compile or compiles
with the same behavior as in C.

-- 
Simen


More information about the Digitalmars-d mailing list