Bull DPX/20 Betriebsanweisung Seite 165

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 424
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 164
SOM Kernel Reference 1-153
somResetObj Method
Purpose
Resets an object’s class to its true class after use of the somCastObj method.
Syntax
boolean somResetObj ( );
Description
The somResetObj method resets an object’s class to its true class after use of the
somCastObj method.
Parameters
receiver A pointer to a SOM object.
Return Value
The somResetObj method returns 1 (TRUE) always.
Example
#include <som.h>
main()
{
SOMClassMgr cm = somEnvironmentNew();
SOM_Test(1 == _somCastObj(cm, _SOMObject));
_somDumpSelf(cm, 0));
SOM_Test(1 == _somResetObj(cm));
_somDumpSelf(cm, 0);
}
/* output:
* {An instance of class SOMClassMgr–>SOMObject
* at address 20061268
* }
* {An instance of class SOMClassMgr at address 20061268
* ... <SOMClassMgr State Information> ...
* }
*/
Original Class
SOMObject
Related Information
Methods: somCastObj
Seitenansicht 164
1 2 ... 160 161 162 163 164 165 166 167 168 169 170 ... 423 424

Kommentare zu diesen Handbüchern

Keine Kommentare