---
layout: doc
title: general / shallow_inherit_list
---
# shallow_inherit_list

### NAME

    shallow_inherit_list() - get the immediate inherits of an object

### SYNOPSIS

    string array shallow_inherit_list( void | object obj );

### DESCRIPTION

    Returns an array of filenames directly inherited by obj.  Only immediate
    inherits are returned.  If A inherits B, and B inherits C,
    shallow_inherit_list(A) returns B but not C.

    If obj is omitted, this efun defaults to this_object().

    In this driver, inherit_list() is an alias for shallow_inherit_list().
    Use deep_inherit_list() when all inherited files are required.

### SEE ALSO

    inherit_list(3), deep_inherit_list(3), inherits(3)
