Nested Function

In computer programming, a nested function (or nested procedure/subroutine) is a function which is lexically (textually) encapsulated within another function. It can only be called by the enclosing function or by functions directly or indirectly nested within the same enclosing function. In other words, the scope of the nested function is limited by the enclosing function. The nesting is theoretically possible to any level of depth, although only a few levels are normally used in practice.

Read more about Nested Function:  An Example, Purpose, Languages, Implementation

Famous quotes containing the words nested and/or function:

    A million people—manners free and superb—open
    voices—hospitality—the most courageous and friendly young men,
    City of hurried and sparkling waters! city of spires and masts!
    City nested in bays! my city!
    Walt Whitman (1819–1892)

    It is not the function of our Government to keep the citizen from falling into error; it is the function of the citizen to keep the Government from falling into error.
    Robert H. [Houghwout] Jackson (1892–1954)