The Wiert Corner – When writing the Spring4D unit tests for GetTypeSize to include as many TTypeKind values, I came across a few types that either did not compile, or were not supported by TypeInfo. I listed them below as I could not find them in the documentation. I included a test named Test_EnsureAllTTypeKindsCoveredByCallsTo_Test_GetTypeSize_ that verifies that all TTypeKind values except tkUnknown are covered. So future extensions of TTypeKind will make the tests fail. As a side issue, I really wanted to know if tkUnknown could be emitted by the compiler. It can sort of, for instance by defining ...
Visits by Source
Users who voted for this posting