February 20, 2005 Re: toString in Object | ||||
---|---|---|---|---|
| ||||
Posted in reply to xs0 | On Sun, 20 Feb 2005 22:49:14 +0100, xs0 <xs0@xs0.com> wrote:
>> It's a pity we can't overload on return type. Or can we.. if we force the programmer to be explicit about it? It would require return type to be considered in the name resolution system.. perhaps it's too big a change?
>
> If the programmer needs to be explicit about it, isn't it just the same if you use two method names? :)
Sure, as was shown in my examples.
However it might be possible to require it only when it's indeterminate.
Regan
|
February 22, 2005 Re: toString in Object | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jarrett Billingsley | Sorry, I'm just used to forums where posting a thread without looking for similar threads that have been posted before is nearly a sin.. It's just that this is not the first time that this has happened to me. How about my module problems thread a few weeks ago? The only people who replied were two guys having a pretty much OT conversation in the thread, and Walter asking me to clarify something, without actually acknowledging the rest of my post. Then, a week or so later, I saw a few threads that talked about very similar things, and they sparked long, serious discussions. |
Copyright © 1999-2021 by the D Language Foundation