Duplicated functions not reported?

Jacob Carlborg via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Apr 15 07:56:57 PDT 2017

On 2017-04-15 13:10, Stefan Koch wrote:

> It would requires an O(n^2) check per declaration.
> Even it is never used.
> which would make imports that much more expensive.

Does it need to be that bad? Isn't it possible to do some simple checks 
with less overhead? Something like first checking the name and the 
number of parameters (shouldn't require semantic analyze?) and only do 
the check for those functions that match. I would guess that would be 
quite few functions that falls within that criteria. Also, only within a 
single module.

/Jacob Carlborg

More information about the Digitalmars-d-learn mailing list