Infer function template parameters
Jonas Drewsen
jdrewsen at nospam.com
Mon Sep 24 01:37:04 PDT 2012
On Saturday, 22 September 2012 at 07:48:14 UTC, Simen Kjaeraas
wrote:
> 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.
I guess it is not that basic of a desiderata after all :)
http://www.prowiki.org/wiki4d/wiki.cgi?LanguageDevel/DIPs/DIP19
-Jonas
More information about the Digitalmars-d
mailing list