Sfairadora

  • Reference Guide

type_constraint

type_constraint(object)
type_constraint(object, flags)
The object parameter is an l-value. The function returns the object type of the data item identified by the l-value. For example, if the data item is an computed item, the type_constraint returns appropriate computed item type, whereas the type function returns the type of the result.
The parameter flags (the type Dword) can be a combination of the following values (the values are combined with the operator |):
Item
Description
TYPE_ALLOW_UNION
If this flag is specified and the data item is of a union type, the function returns the type of the union. Otherwise, it returns the type of data stored in the data item.
TYPE_ALLOW_FORWARDED
If this flag is specified and the data item is a forwarded item, the function returns the type of the forwarded item. Otherwise, it returns the type of the forwarded item target data.
If the flags parameter is not specified, it is assumed that both TYPE_ALLOW_UNION and TYPE_ALLOW_FORWARDED flags are specified.

See Also