Search code examples
compiler-constructionprogramming-languages

Meaning of "Procedure-valued variable?


What does it meant by a procedure-valued variable in the programming language context .


Solution

  • When a variable contains a procedure? Like in functional languages, where you can sth like:

    variable f = new function(int x) { return x*2; } 
    int i = f(3);