Hacker News new | past | comments | ask | show | jobs | submit login

Unless it's via some new-fangled C++ feature I haven't heard of yet, I'm pretty sure C++ doesn't have multiple dispatch. Can you elaborate on what you're referring to?



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.




Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: