Re: [fpc-pascal] Delphi's anonymous functions in Free Pascal

2012-10-28 Thread 印場 乃亜
Hi, On 2012/08/31, at 2:51, Jürgen Hestermann wrote: > Am 2012-08-30 18:29, schrieb Ralf A. Quint: > > Pascal has evolved since Wirth's original design back in the 70s > > This is true. But there are two aspects of the Pascal extensions of the last > years (decades) that contradict with what I

Re: [fpc-pascal] Delphi's anonymous functions in Free Pascal

2012-10-28 Thread 印場 乃亜
Hi, ... > - > This is funny to remember today. ;-) > When i run BP 7 on 80286 computers, and then compared with size and speed of > TP 5.5 - i was sure as hell that OOP is for lazy programmers, who cannot > make code fast and small. > And i remember comparing speed of Virtual Pascal and con

Re: [fpc-pascal] Delphi's anonymous functions in Free Pascal

2011-10-22 Thread Juha Manninen
2011/10/22 Gregory M. Turner > > Taking these terms in the broadest sense possible, wouldn't we say that OOP > is mostly a functional development paradigm? > > Not a rhetorical question, I seriously am not sure. > > OP's somewhat idiosyncratic requirement to put all the OOP metadata in a > separat

Re: [fpc-pascal] Delphi's anonymous functions in Free Pascal

2011-10-21 Thread Gregory M. Turner
- Original Message - > 18.10.2011 0:53, Andrew Pennebaker пишет: > > Does Free Pascal have anonymous functions that you can pass around, > > e.g. > > to a sort(compare : function, arr : array) function? > > > > anonymous functions = closures = lambdas are part of functional > paradigm. obje

Re: [fpc-pascal] Delphi's anonymous functions in Free Pascal

2011-10-21 Thread Alexander Shishkin
18.10.2011 0:53, Andrew Pennebaker пишет: Does Free Pascal have anonymous functions that you can pass around, e.g. to a sort(compare : function, arr : array) function? anonymous functions = closures = lambdas are part of functional paradigm. object pascal itself is not functional language. Bu

Re: [fpc-pascal] Delphi's anonymous functions in Free Pascal

2011-10-19 Thread Alexander Shishkin
19.10.2011 12:16, Sven Barth пишет: E.g. TIntegerFunc = reference to function: Integer; procedure SomeOtherProc(aFunc: TIntegerFunc); ... procedure Foo; var x: Integer; begin x := 42; SomeOtherProc(function: Integer; begin Result := x; end;); end; I haven't tested that, but from the descript

Re: [fpc-pascal] Delphi's anonymous functions in Free Pascal

2011-10-18 Thread Sven Barth
Am 17.10.2011 22:53, schrieb Andrew Pennebaker: Does Free Pascal have anonymous functions that you can pass around, e.g. to a sort(compare : function, arr : array) function? If not, does anyone know any hacks to accomplish this? No, FPC does not support this currently and I know no one who pla