3 ms·
>> And, bam, now your “statically typed” language actually has dynamic type checking. > Not in any way, shape, or form? https://en.cppreference.com/w/cpp/lang
by pwdisswordfish9 4y ago
>> And, bam, now your “statically typed” language actually has dynamic type checking.
> Not in any way, shape, or form?
https://en.cppreference.com/w/cpp/language/type#Dynamic_type https://en.cppreference.com/w/cpp/language/type#Dynamic_type
https://en.cppreference.com/w/cpp/language/dynamic_cast https://en.cppreference.com/w/cpp/language/dynamic_cast
https://en.cppreference.com/w/cpp/language/typeid https://en.cppreference.com/w/cpp/language/typeid
It’s there in the name.
- masklinn 4y ago> It’s there in the name. In the same way that the Democratic Republic of North Korea is democratic. Right there in the name. Also that Dynamic Programming involves not knowing anything. Right there in the name. A Dynamic Microphone? Not actually a microphone at all.
- sparkie 4y ago`dynamic_cast` does a dynamic type cast (a downcast). It does what it says on the tin. It's purpose is to cast a value whose precise type may not be known until runtime.