Previous: Structures with Local Pointers Up: Data Transfer Functions Next: Pitfalls

Automatic Transfer Function Generation

If there are no local pointers or arrays in a user-defined type, then the CC++ compiler can generate the correct transfer functions automatically. For instance, the correct transfer functions for class Point can be generated automatically, while those for class Vector cannot be.

This implementation of CC++ follows these rules for automatic transfer function generation:

paolo@cs.caltech.edu