News for hackers. Stuff that matters.
Re:What can we learn from how compilers are designed? by zenhack on Friday March 16, 2018 @08:42PM (#16605000)
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?
Re:What can we learn from how compilers are designed? by bstamour on Saturday March 17, 2018 @08:20AM (#16606643)
C++ doesn't have multiple dispatch. I think the OP was referring to multiple inheritance, which is not the same thing.
Re:What can we learn from how compilers are designed? by ZephyrP on Saturday March 17, 2018 @04:18PM (#16608857)
I was thinking of runtime single dispatch with compile-time type of the arguments to that function.
Re:What can we learn from how compilers are designed? by bstamour on Saturday March 17, 2018 @05:01PM (#16609043)
So virtual function overloading?

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

Re:What can we learn from how compilers are designed? by ZephyrP on Saturday March 17, 2018 @08:17PM (#16609835)
just ordinary virtual function that discriminates upon arguments (at compile-time).
Re:What can we learn from how compilers are designed? by zenhack on Saturday March 17, 2018 @10:42PM (#16610245)
Yeah, multiple dispatch implies more than one argument involved in the dispatch decision at runtime. So that's not the same thing.