Don't assume use of a heap

When writing an interface, don't assume that objects that get passed in are on the heap, because this method doesn't work well for objects on the stack. If you must assume that an argument is heap based, document that fact; and if you plan to take responsibility for managing the storage, use the proper naming convention. Begin the function name with Adopt..., as explained in "Name conventions" on page 58.


[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker