Content deleted Content added
m →Example |
|||
Line 19:
compose f g = λx → f (g x)
The <code>[[
The problem in this case exists if the compose function had allocated the parameter variables <code>''f''</code> and <code>''g''</code> on the stack. When <code>''compose''</code> returns, the stack frame containing <code>''f''</code> and <code>''g''</code> is discarded. When the internal function <code>''λx''</code> attempts to access <code>''g''</code>, it will access a discarded memory area.
|