[Issue 3345] Static and nonstatic methods with the same name should be allowed
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jul 29 11:38:20 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=3345
--- Comment #11 from Basile-z <b2.temp at gmx.com> ---
(In reply to Max Samukha from comment #10)
> (In reply to Basile-z from comment #8)
> > considering that the `this` parameter is not part of the signature it's
> > indeed reasonable not to support static and nonstatic in the same set.
> >
> I wouldn't use the broken type system as a rationale. Static and non-static
> function types should have never been equal.
I'm not 100% sure of what I will say but I would say that it's not really
"broken", rather that "it's pragmatically adapted to closures". You see, a kind
of tradeoff.
--
More information about the Digitalmars-d-bugs
mailing list