SomResetObj: Difference between revisions
Appearance
Created page with "{{DISPLAYTITLE:somResetObj}} Resets an object's class to its true class after use of the somCastObj method. ; Original Class : SOMObject ==Syntax== boolean somResetObj ..." |
No edit summary |
||
Line 42: | Line 42: | ||
* [[somCastObj]] | * [[somCastObj]] | ||
[[Category: | [[Category:SOMObject]] |
Latest revision as of 04:03, 13 October 2017
Resets an object's class to its true class after use of the somCastObj method.
- Original Class
- SOMObject
Syntax
boolean somResetObj (SOMObject receiver)
Parameters
- receiver (SOMObject)
- A pointer to a SOM object.
Return Code
- rc (boolean)
- The somResetObj method returns 1 (TRUE) always.
Remarks
The somResetObj method resets an object's class to its true class after use of the somCastObj method.
Example Code
#include <som.h> main() { SOMClassMgr cm = somEnvironmentNew(); SOM_Test(1 == _somCastObj(cm, _SOMObject)); _somDumpSelf(cm, 0)); SOM_Test(1 == _somResetObj(cm)); _somDumpSelf(cm, 0); } (null) /* output: * {An instance of class SOMClassMgr->SOMObject * at address 20061268 * } * {An instance of class SOMClassMgr at address 20061268 * ... <SOMClassMgr State Information> ... * } */