Nesting (computing)
The function wizard of the OpenOffice.org Calc application allows to navigate through multiple levels of nesting,[further explanation needed] letting the user to edit (and possibly correct) each one of them separately.Naturally, to allow the mathematical resolution of these chained (or better: nested) formulas, the inner expressions must be previously evaluated, and this outward direction is essential because the results that the internal functions return are temporarily used as entry data for the external ones.Due to the potential accumulation of parentheses in only one code line, editing and error detecting (or debugging) can become somehow awkward.That is why modern programming environments -as well as spreadsheet programs- highlight in bold type the pair corresponding to the current editing position.In structured programming languages, nesting is related to the enclosing of control structures one into another, usually indicated through different indentation levels within the source code, as it is shown in this simple BASIC function: In this small and simple example, the conditional block “if... then... end if” is nested inside the “do while... loop” one.