Re: [fpc-pascal] Functional Pascal

2012-03-01 Thread Marco van de Voort
In our previous episode, Lukasz Stafiniak said: > >> (2) Closures. That is, making local functions that only use "const" > >> arguments and "val / let" variables safe to return from the outer > >> function. This can be done by allocating the "val / let" data on the > >> heap, or perhaps easier by c

[fpc-pascal] Functional Pascal

2012-03-01 Thread Lukasz Stafiniak
On Wed, Feb 29, 2012 at 11:31 AM, Sven Barth wrote: > Am 28.02.2012 20:31, schrieb Lukasz Stafiniak: >> >> (1) A declaration part, that parallels "var", with keyword "val" or >> "let" (since "val" is taken up by a procedure). It introduces named >> values, i.e. non-assignable variables. The part a