Auto returntype

Dennis dkorpel at gmail.com
Mon May 20 12:46:26 UTC 2019


On Sunday, 19 May 2019 at 22:57:50 UTC, Alex wrote:
> Can anyone see any failures of such code?

If you first declare a function:
T func(T a);

And then import a module that defines a public struct T, suddenly 
you have a regular function instead of a template function. With 
that syntax, you can't distinguish template functions from 
regular functions from the grammar alone anymore.


More information about the Digitalmars-d mailing list