AID only allows comparing or assigning to typed pointers if both pointers have the same reference type (and are therefore based on the same TYPEDEF clause). Comparing and assigning of pointers with data from different reference types is therefore generally not allowed.
The address selector ADDRESS OF
is also allowed for a comparison or an assignment. The address selector is implicitly assigned a corresponding reference type that is checked analogously for type compatibility.
Comparing and assigning data structures with a TYPE clause
As with data structures that have no TYPE clause, comparisons and assignments are string type operations, i.e. the entire data structure is seen as a hexadecimal string. However, the TYPE clause causes AID to check the reference type (only for %SET and not for %MOVE - in the same way as the check with typed pointers) and reject the operation if appropriate.
Comparison or assignment at low level is however always possible, e.g. via type modification with %X.