home *** CD-ROM | disk | FTP | other *** search
- A promotion (or widening conversion) is a conversion from type A
- to type B where all of the values in type A can be represented in
- type B. For example, a conversion from int to double is a
- promotion. A demotion (or narrowing conversion) is a conversion
- from type A to type B where some of the values of type A cannot be
- represented in type B. For example, a conversion from double to
- int is a demotion.
-