[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]


SOMReleaseOrder

Description:

Specifies the order in which a SOM class's member functions are released.

Compatibility:

This pragma is compatible with the following platform targets:

68K

PowerPC

NEC V800
Intel x86
MIPS
Embedded 68K

Prototype:
  #pragma SOMRelaseOrder(func1, func2,... funcN) Remarks:

This pragma is only available for Mac OS using C++ code.

A SOM class must specify the release order of its member functions. As a convenience for when you're first developing the class, CodeWarrior C++ lets you leave out the SOM-Release-Order pragma and assumes the release order is the same as the order in which the functions appear in the class declaration. However, when you release a version of the class, use the pragma, since you'll need to modify its list in later versions of the class.

You must specify every SOM method that the class introduces. Do not specify inline member functions that are virtual, since they're not considered to be SOM methods. Don't specify overridden functions.

If you remove a function from a later version of the class, leave its name in the release order list. If you add a function, place it at the end of the list. If you move a function up in the class hierarchy, leave it in the original list and add it to the list for the new class.

This pragma is ignored if the direct_to_SOM pragma, described in Targeting Mac OS, is off.

This pragma does not correspond to an option in any settings panel.


[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]

Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.

Last updated: August 17, 2000