News for hackers. Stuff that matters.
Re:A static_cast is not always just a pointer adjustment by pcwalton on Friday April 01, 2016 @10:26PM (#11409941)
Multiple inheritance in its many forms (including interfaces as found in Java/C#/Golang) always makes casts interesting, even sometimes when methods aren't involved.

Somewhat related stuff that might be interesting:

dynamic_cast in C++: http://mentorembedded.github.io/cxx-abi/abi.html#rtti

Golang's interface casts (also used by Swift I believe): http://research.swtch.com/interfaces

Speculation for interface casts in Java: https://wiki.openjdk.java.net/display/HotSpot/PerformanceTec...

There are no comments on this comment yet.