First page Back Continue Last page Summary Graphics
Functions
Functions
- Mathematical meaning: parameters µ result
- When parameters are evaluated?
- when used: lazy evaluation (haskell, eg: if)
- when function is called: strict evaluation
First class values = can be given as argument & result
- arrays nor functions are first class in Pascal
Notes:
Pb of visilibility can be solved with global variables, module variables, object attributes, implicit parameters (ghc)