Whole document tree
4.22 Cast to a Union Type
A cast to union type is similar to other casts, except that the type
specified is a union type. You can specify the type either with
The types that may be cast to the union type are those of the members of the union. Thus, given the following union and variables:
both Using the cast as the right-hand side of an assignment to a variable of union type is equivalent to storing in a member of the union:
You can also use the union cast as a function argument:
This document was generated by root on January, 30 2002 using texi2html |