Read Me - Common Public License V1.0 - Copyright Notice(©)

delete


>>-delete(methodname)------------------------------------------><

Removes the receiver class's definition for the method name [methodname] . If the receiver class defined [methodname] as unavailable with the [define] method, this definition is nullified. If the receiver class had no definition for [methodname] , no action is taken.

[Notes:]

  1. The classes Rexx provides do not permit changes or additions to their method definitions.
  2. delete deletes only methods the target class defines. You cannot delete inherited methods the target's superclasses define.
  3. The delete method is a protected method.

Class class - delete method

myclass=.object~subclass("Myclass")        /* After creating a class  */
myclass~define("TYPE",'return "my class"') /* and defining a method   */
myclass~delete("TYPE")                     /* this deletes the method */

Read Me - Common Public License V1.0 - Copyright Notice(©)