[fpc-pascal] Re: Delphi's anonymous functions in Free Pascal
Sven Barth
pascaldragon at googlemail.com
Thu Oct 20 08:14:33 CEST 2011
Am 19.10.2011 23:28, schrieb Andrew Pennebaker:
> >From what I gather, procedure variables can indeed be referenced and
> passed around, etc.
>
> However, procedures do not return anything, so it's hard to chain them.
> In functional languages, it's handy to do several nested map(map(map f
> ... calls.
Pascal isn't a functional language. You'll need to find other ways to do
this in Pascal as other Pascal users have found ways to implement their
code. You could try object oriented programming for example (though I
don't know a specific solution for "map").
Regards,
Sven
More information about the fpc-pascal
mailing list