News for hackers. Stuff that matters.
Re:Why general inheritance is flawed and how to finally fix it by kazinator on Monday December 13, 2021 @12:49PM (#29542106)
C++ can do something something like this (at compile time) in its -> operator (ancient feature, long before C++98 was standardized).

   obj->foo()
will expand into enough -> dereferences until a foo is found. For instance suppose the object returned by obj's operator ->() function doesn't have a foo member, but itself overloads ->. Then that overload will be used, and so on.

There are no comments on this comment yet.