Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FYI: the diamond problem is solved! #781

Closed
joortcom opened this issue Jun 27, 2023 · 2 comments
Closed

FYI: the diamond problem is solved! #781

joortcom opened this issue Jun 27, 2023 · 2 comments

Comments

@joortcom
Copy link

@pwnall

I'm reading: https://github.com/google/styleguide/blob/gh-pages/cppguide.html
esp about the multiple inheritance part.

And I just want to let you know: the diamond problem is solved! please check here:

https://github.com/joortcom/DDIFI

The diamond problem solved! Using virtual property to decouple the data dependency of the subclass on the superclass, as a clean and general solution to multiple inheritance.

If the company are interested, I can goto Google and give a presentation talk about the design pattern.

Regards.

@tituswinters
Copy link
Contributor

IIUC, that is a solution if your tool is used AND if everyone is doing that consistently from the beginning.

@tituswinters tituswinters closed this as not planned Won't fix, can't repro, duplicate, stale Jun 27, 2023
@joortcom
Copy link
Author

Previously people are haunted by the diamond problem, because there was no clean solution. That's why people and most programming style guide suggested avoiding MI as much as possible.

But, now we have a clean and general solution (I just invented this design pattern early this year). Then people can start using it: "better late than never" :-)

BTW: it's just a design pattern, can be used in a number of mainstream programming languages, no additional "tool" is needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants