When accessing uninitialized elements of a tuple or vector with HDevelop, an exception is raised. Due to performance reasons, there is no corresponding check in the HALCON language interfaces. Instead of raising an exception, an element of the default type is returned.
a := [0, 1] b := a[2]
For example, this code snippet raises an exception in HDevelop, but might return an arbitrary value for b in one of the language interfaces. Thus, this coding style must be avoided.