Static functions & variables in ObjecTime |
Category: |
C++
Applicable to: |
All Versions
Purpose: |
To discuss issues related to the usage of static functions and variables in ObjecTime models
Intended Audience: |
C++ users
Description: |
There are a number of problems with static functions and variables from an ObjecTime perspective:
The main use for these things appears to be as a mechanism for RPC call-backs that circumvent some of ObjecTime's current limitations with respect to the external layer service.
Some C++ users like them because they're used to them in 'normal' C++ development in a single process environment, but there is a potentially high price for this when their models break because of the lack of re-entrancy or invalid accesses. As ObjecTime increasingly moves towards model validation, these sorts of things will introduce invisible holes into the analysis and could cause problems.
So, in general, users are recommended to avoid using statics in their models at this time.
Limitations: |
None
See also: |
None
Copyright © 1999, ObjecTime Limited. |