So what does (inout int = 0) do?

Guillaume Piolat via Digitalmars-d digitalmars-d at puremagic.com
Fri Apr 15 06:48:12 PDT 2016


On Friday, 15 April 2016 at 12:54:11 UTC, ixid wrote:
>
> Why didn't we go with all functions being able to infer const, 
> pure etc rather than just templates?

Non-templated function may not have their source code available. 
For consistency, non-template function have no inference.


More information about the Digitalmars-d mailing list