NAME

parent - get the parent class

SYNOPSIS

val.parent

APPLIES TO

val may be of any type

DESCRIPTION

Every Object and Class has a parent class. This may be accessed via the public parent constant. The value of the parent constant is automatically initialized by OADL; it is an error to try to override it. Additionally, the parent constant of any value may be queried; it will return the type of the value.

EXAMPLES

         class cls {}
         class sub(cls) {}
         cls.parent
    nil

         sub.parent
    cls

         "1234".parent
    String[4]
          
        3.14159->parent
    Float

SEE ALSO

is_a
typeof
typecheck