Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Type safety issues

Software systems implemented in C++ are designed to be type-safe. That is, proper use of header files, make utilities, type declarations, classes and templates makes it difficult to pass data of the wrong type to functions, to assign data of the wrong type to variables, or to construct a program whose modules are inconsistent with one another. Thus a major source of programming errors is detected while the program is being built, before running it.

A program which uses resources must have a resource file which matches that program’s requirements. However, the resource file and the executable program are only loosely bound together: a variety of errors are possible when dealing with resources, which cannot be detected during the build process. Programmers should be aware of these and take appropriate measures to avoid them.

Additional sources of error include:

The resource compiler does provide some elementary safety features: