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)
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)