Advertisement

Inside a Function Call

  • Thomas Mailund
Chapter

Abstract

When you execute the body of a function, as you have seen, you do this in the evaluation environment. This evaluation environment is linked through its parent to the environment where the function was defined and has its arguments stored as promises that will be evaluated either in the environment where the function was defined (for default parameters) or in the environment where the function was called (for parameters provided to the function there). In the previous chapter, you saw how you could get hold of the formal parameters of a function, the body of the function, and the environment in which the function was defined. In this chapter, you will examine how you can access these, and more, from inside a function while the function is being evaluated.

Keywords

Formal Parameter Function Call Function Component Function Definition Current Function 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Copyright information

© Thomas Mailund 2017

Authors and Affiliations

  • Thomas Mailund
    • 1
  1. 1.Aarhus NDenmark

Personalised recommendations