News for hackers. Stuff that matters.
Re:Chris Lattner on Swift and dynamic dispatch by tomcam on Sunday December 13, 2015 @04:22AM (#10725868)
Good writeup. What is a checked downcast?
Re:Chris Lattner on Swift and dynamic dispatch by twoodfin on Sunday December 13, 2015 @04:34AM (#10725895)
In this context, it's a runtime check inserted by the compiler to be sure that an object retrieved via a generic interface matches the more specific type the caller expects.
Re:Chris Lattner on Swift and dynamic dispatch by masklinn on Sunday December 13, 2015 @06:21AM (#10726065)
A call from an abstract interface to a concrete type which signals if the concrete type is wrong.

In C++, `dynamic_cast` is checked (it returns a null if the cast is incorrect) while the others are unchecked (at runtime, they do have some static checking/limitations, except for C-style casts where there's no check whatsoever)