Re: [fpc-pascal] Delphi-FPC difference in handling TList

2015-10-20 Thread Bo Berglund
On Tue, 20 Oct 2015 08:31:57 +0200, Bo Berglund wrote: Thanks! FCommands.Sort(@CommandCompare); works fine, at least no longer any compile errors in this unit. Now in another unit and wound up with lots of Windows specific stuff I really do not need, so I am busy ifdefing away those... Plus in

Re: [fpc-pascal] Delphi-FPC difference in handling TList

2015-10-20 Thread Michael Van Canneyt
On Tue, 20 Oct 2015, Bo Berglund wrote: I am porting a Delphi class to FPC and I ran into a problem concerning TList: FCommands.Sort(CommandCompare); This generates an error: Error: Wrong number of parameters specified for call to "CommandCompare" This call works just fine in Delphi and I h

Re: [fpc-pascal] Delphi-FPC difference in handling TList

2015-10-19 Thread Mattias Gaertner
On Tue, 20 Oct 2015 08:31:57 +0200 Bo Berglund wrote: > I am porting a Delphi class to FPC and I ran into a problem concerning > TList: > > FCommands.Sort(CommandCompare); > > This generates an error: > Error: Wrong number of parameters specified for call to > "CommandCompare" > > This call wo