#161 Add IsSubclassOf method to Class

Next_Release
closed
nobody
Classes (154)
5
2012-08-14
2007-04-26
Moritz Hoffmann
No

As of ooRexx 3.1.2 class instances have a method IsInstanceOf to find out if they are a subclass of some class.
Sometimes it is neccessary to find out if a class inherits from other classes. This is impossible to check with the IsInstanceOf method, as this asks for an instance, not a class.

A solution for this would be to add a class method IsSubclassOf(class).

The problem can be avoided by using
someclass~new~IsInstanceOf(.myclass)
but that is not very nice.
Thanks

Discussion

  • David Ashley
    David Ashley
    2007-06-21

    Logged In: YES
    user_id=931756
    Originator: NO

    Docs update with revision 489.

     


Anonymous


Cancel   Add attachments