[Issue 3231] Function declared to return a type with its same name doesn't compile
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Aug 6 22:22:06 PDT 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3231
--- Comment #6 from Jarrett Billingsley <jarrett.billingsley at gmail.com> 2009-08-06 22:22:05 PDT ---
(In reply to comment #5)
> The bug was filed as a blocker for the .net implementation because there are
> cases like this System.Text.RegularExpressions that has a static Match
> Match(System.String, System.String) method.
>
> I think that marking the bug as invalid because of a limitation in the
> implementation is ridiculous.
It's not a limitation in the implementation, it's how the language is defined.
Java - and by proxy, C#, since MS doesn't seem to have strayed too far from
their "inspiration" - allows for multiple symbols of the same name to be
distinguished based on how they're used. D does not. If you have a
disagreement, it's with the spec, not the implementation.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list