Skip to main content

destruct

Short summary

This method is a self-destruction if the object was created dynamically. The disposable container provides the option to clear contents that should not be deleted.

Parameters

none

Code

Declaration

METHOD FINAL destruct
VAR
(* __DELETE(THIS) is not allowed anymore in Tc 4026.
tmp is just a helper pointer that points to this instance *)
tmp : POINTER TO CNM_AbstractObject.Object;
END_VAR

Implementation

THIS^.clearContents();
SUPER^.destruct();