Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

C++ doesn't have multiple dispatch. I think the OP was referring to multiple inheritance, which is not the same thing.


I was thinking of runtime single dispatch with compile-time type of the arguments to that function.


So virtual function overloading?

Can you give a small bit of sample code to demonstrate what you mean?


just ordinary virtual function that discriminates upon arguments (at compile-time).


Yeah, multiple dispatch implies more than one argument involved in the dispatch decision at runtime. So that's not the same thing.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: