D2 status interim report ?

Koroskin Denis 2korden at gmail.com
Mon Jun 23 11:19:42 PDT 2008


On Mon, 23 Jun 2008 10:02:39 +0400, Extrawurst <spam at extrawurst.org> wrote:

> Walter Bright schrieb:
>> Extrawurst wrote:
>>> Hey Walter,
>>> this is just a list of changes which were originally planned to be  
>>> integrated into D2.0 according to the slides you and Andrei presented  
>>> on DConference '07. So please give us a comment on what perhaps has  
>>> changed or when certain things are going to be addressed.
>>> A little insight on your roadmap would be great.
>>>
>>> (1) STRUCT opImplicitCastTo/From (p.21)
>>> ---------------------------------
>>> How do you want to solve the problem of overloading by return value  
>>> which would be necessary to solve something like the example in the  
>>> slides (p.21):
>>>
>>>    struct S{
>>>        int opImplicitCastTo(){...}
>>>        float opImplicitCastTo(){...}
>>>    }
>>
>> Still planning on it.
>
> So does it mean we gonna get overloading on different return types ?

There was a suggestion to change a signature to something like this:
struct S {
	void opImplicitCastTo(ref float result) { ... }
	void opImplicitCastTo(ref int result) { ... }
}

bacause overload on return value is basically unacceptable.



More information about the Digitalmars-d mailing list