Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
zenhack
on March 17, 2018
|
parent
|
context
|
favorite
| on:
What can we learn from how compilers are designed?
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?
bstamour
on March 17, 2018
[–]
C++ doesn't have multiple dispatch. I think the OP was referring to multiple inheritance, which is not the same thing.
ZephyrP
on March 17, 2018
|
parent
[–]
I was thinking of runtime single dispatch with compile-time type of the arguments to that function.
bstamour
on March 17, 2018
|
root
|
parent
[–]
So virtual function overloading?
Can you give a small bit of sample code to demonstrate what you mean?
ZephyrP
on March 18, 2018
|
root
|
parent
[–]
just ordinary virtual function that discriminates upon arguments (at compile-time).
zenhack
on March 18, 2018
|
root
|
parent
[–]
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: