Clarify ownership of storage in interfaces

Make storage management implications clear to the callers of an interface, especially if the routine allocates storage for which the caller must take responsibility. The names for these routines must begin with Create..., Copy..., or Orphan...; if they take responsibility for arguments, they begin with Adopt.... Make these issues explicit by using comments, naming conventions, and documentation.


[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