Will alias this work for classes too?

Jascha Wetzel "[firstname]" at mainia.de
Thu Sep 13 05:07:13 PDT 2007


Janice Caron wrote:
> On 9/13/07, Jascha Wetzel <"[firstname]"@mainia.de> wrote:
>> that would be a different syntax for regular MI and is therefore
>> probably not going to happen.
> 
> "alias this" is already slated in in the Walter Andrei document.
> Walter apparently /wants/ "alias this", and it looks like it will work
> as I outlined - at least for structs. Classes? I don't know. That's
> why I asked.
> 
> It's not real multiple inheritance. Nobody should pretend it is. But
> it does "fake it" to a certain extent..

that depends on what you want to do on name collisions. structs don't 
have inheritance or virtual functions, which greatly simplifies the 
problem. once you deal with inheritance and virtual functions as 
intuitively expected (at least as I intuitively expected), it'll be like 
real MI.



More information about the Digitalmars-d mailing list