Re:How C++ Resolves a Function Call
by rjzzleep on Tuesday March 16, 2021 @02:28AM
(#26473639)
This is a good article in terms of context, but I found it much easier to understand how C++ does class functions when I first saw this in a disassembly output. I guess I'm a more visual learner that has a fairly hard time following a lot of text.
[ Parent
| on HN ]
This article doesn't touch codegen. It is merely about the algorithm by which the compiler disambiguates e.g. which function or method named foo you meant to call when you write e.g. foo(1, 3) vs. x::foo("bar").