Go to the first, previous, next, last section, table of contents.


Explicit conversions

Explicit conversions exist for two reasons: to allow for making implicit conversions explicit, and to enable conversions which are not possible implicitly.

type_conversion:
          entity_type `(' expression `)'
        ;

Allowed explicit conversions are any conversion which is implicitly possible; conversion of an integer type to a narrower integer type; conversion of the wide floating point type to the narrow floating point type; conversion from integer to floating point and vice versa; conversion from a class to a subclass thereof; and conversion from ByteString to selector if the ByteString typed expression is a string constant.


Go to the first, previous, next, last section, table of contents.