Thread overview
[Issue 5380] alias this is not considered with superclass lookup
Nov 11, 2017
Mike
Jun 28, 2018
Simen Kjaeraas
Oct 09, 2018
RazvanN
Nov 19, 2018
Walter Bright
Nov 19, 2018
Walter Bright
Dec 24, 2021
Max Samukha
Dec 25, 2021
Mike Parker
Sep 08, 2022
RazvanN
November 11, 2017
https://issues.dlang.org/show_bug.cgi?id=5380

Mike <slavo5150@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://issues.dlang.org/sh
                   |                            |ow_bug.cgi?id=13189

--
June 28, 2018
https://issues.dlang.org/show_bug.cgi?id=5380

Simen Kjaeraas <simen.kjaras@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |wazar.leollone@yahoo.com

--- Comment #5 from Simen Kjaeraas <simen.kjaras@gmail.com> ---
*** Issue 19032 has been marked as a duplicate of this issue. ***

--
October 09, 2018
https://issues.dlang.org/show_bug.cgi?id=5380

RazvanN <razvan.nitu1305@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |razvan.nitu1305@gmail.com

--- Comment #6 from RazvanN <razvan.nitu1305@gmail.com> ---
PR: https://github.com/dlang/dmd/pull/8815

--
November 19, 2018
https://issues.dlang.org/show_bug.cgi?id=5380

--- Comment #7 from Walter Bright <bugzilla@digitalmars.com> ---
This is much more of a perplexing problem than it first appears. What order are things looked up in? Is the alias-this looked up first, or the base classes? Or are they looked up as the base classes are looked up? What happens if two different symbols are found via different orderings of when lookups are done? What happens if the same symbol is found via different lookup paths?

This is the old multiple inheritance problem from C++, one I had wished to avoid in D.

Max Samukha's comment is a way to inherit class types from struct types, one use I had not anticipated, and makes me want to step back and question is this really where we want to go with this?

At least with the current implementation, things are a bit straightforward. The base classes are looked at. If not found there, the alias-this is looked at, and that's it.

--
November 19, 2018
https://issues.dlang.org/show_bug.cgi?id=5380

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://issues.dlang.org/sh
                   |                            |ow_bug.cgi?id=8663

--
December 02, 2018
https://issues.dlang.org/show_bug.cgi?id=5380

alexanderheistermann@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |alexanderheistermann@gmail.
                   |                            |com

--- Comment #8 from alexanderheistermann@gmail.com ---
Do we really want multiple inheritance via alias this? I can't imagine how the current situation will be when multi alias this is implemented.

@Walter Bright
Please think long and hard about this, as if we allow multiple inheritance via
alias this, we be encountering the infamous "diamond problem".

https://web.archive.org/web/20051024230813/http://www.objectmentor.com/resources/articles/javacpp.pdf

--
December 24, 2021
https://issues.dlang.org/show_bug.cgi?id=5380

Max Samukha <maxsamukha@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |maxsamukha@gmail.com
         Resolution|---                         |WONTFIX

--- Comment #9 from Max Samukha <maxsamukha@gmail.com> ---
Multiple inheritance fell from grace.

--
December 25, 2021
https://issues.dlang.org/show_bug.cgi?id=5380

Mike Parker <aldacron@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |aldacron@gmail.com
         Resolution|WONTFIX                     |---

--- Comment #10 from Mike Parker <aldacron@gmail.com> ---
This shouldn't be closed. Either the implementation needs to be modified to allow it or the spec needs to specify that alias this in a super class is not considered in its subclasses.

--
September 08, 2022
https://issues.dlang.org/show_bug.cgi?id=5380

RazvanN <razvan.nitu1305@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |szadows@gmail.com

--- Comment #11 from RazvanN <razvan.nitu1305@gmail.com> ---
*** Issue 8663 has been marked as a duplicate of this issue. ***

--