Re: [fpc-devel]Nested function as argument for TList.Sort

2003-12-23 Thread Florian Klaempfl
Olle Raab wrote: 03-11-30 10.36, skrev Jonas Maebe följande: On 30-nov-03, at 02:29, Pedro Lopez-Cabanillas wrote: Of course, if the compiler doesn't support this feature, because the internal handling of function calls, a compiler error message is better than a program crash. The problem is t

Re: [fpc-devel]Nested function as argument for TList.Sort

2003-12-01 Thread Olle Raab
03-11-30 10.36, skrev Jonas Maebe följande: > > On 30-nov-03, at 02:29, Pedro Lopez-Cabanillas wrote: > >> Of course, if the compiler doesn't support this feature, because the >> internal >> handling of function calls, a compiler error message is better than a >> program >> crash. > > The probl

Re: [fpc-devel]Nested function as argument for TList.Sort

2003-11-30 Thread Jonas Maebe
On 30-nov-03, at 02:29, Pedro Lopez-Cabanillas wrote: Of course, if the compiler doesn't support this feature, because the internal handling of function calls, a compiler error message is better than a program crash. The problem is that some iterator-implementations do (and only) support local

Re: [fpc-devel]Nested function as argument for TList.Sort

2003-11-29 Thread Pedro Lopez-Cabanillas
Peter Vreman wrote: > > Peter Vreman wrote: > > [...] > > > >> > This is bad coding imho and works in Delphi only "by accident" because > >> > Delphi uses register calling conventions. Or are I'am wrong and sort > >> > expects a local procedure? > >> > >> The compiler should give an error. It is ba

Re: [fpc-devel]Nested function as argument for TList.Sort

2003-11-27 Thread Peter Vreman
> Peter Vreman wrote: > [...] >> > This is bad coding imho and works in Delphi only "by accident" because >> > Delphi uses register calling conventions. Or are I'am wrong and sort >> > expects a local procedure? >> >> The compiler should give an error. It is bad coding and only a >> "undocumented f

Re: [fpc-devel]Nested function as argument for TList.Sort

2003-11-27 Thread Pedro Lopez-Cabanillas
Peter Vreman wrote: [...] > > This is bad coding imho and works in Delphi only "by accident" because > > Delphi uses register calling conventions. Or are I'am wrong and sort > > expects a local procedure? > > The compiler should give an error. It is bad coding and only a > "undocumented feature" of

Re: [fpc-devel]Nested function as argument for TList.Sort

2003-11-27 Thread Peter Vreman
>> The attached program compiles and works fine under Kylix 3, and also >> compiles >> under fpc 1.9, but bombs with this message: >> >> An unhandled exception occurred at 0x0807F0B5 : >> EAccessViolation : Access violation >> 0x0807F0B5 >> >> It happens on TObjectList.Sort when the argument is a

Re: [fpc-devel]Nested function as argument for TList.Sort

2003-11-27 Thread Michael Van Canneyt
On Thu, 27 Nov 2003, Marc Weustink wrote: > At 08:54 27-11-2003, Florian Klaempfl wrote: > >Pedro Lopez-Cabanillas wrote: > > > >>Hi, > >>The attached program compiles and works fine under Kylix 3, and also > >>compiles under fpc 1.9, but bombs with this message: > >>An unhandled exception occur

Re: [fpc-devel]Nested function as argument for TList.Sort

2003-11-27 Thread Marc Weustink
At 08:54 27-11-2003, Florian Klaempfl wrote: Pedro Lopez-Cabanillas wrote: Hi, The attached program compiles and works fine under Kylix 3, and also compiles under fpc 1.9, but bombs with this message: An unhandled exception occurred at 0x0807F0B5 : EAccessViolation : Access violation 0x0807F0B5

Re: [fpc-devel]Nested function as argument for TList.Sort

2003-11-27 Thread Florian Klaempfl
Pedro Lopez-Cabanillas wrote: Hi, The attached program compiles and works fine under Kylix 3, and also compiles under fpc 1.9, but bombs with this message: An unhandled exception occurred at 0x0807F0B5 : EAccessViolation : Access violation 0x0807F0B5 It happens on TObjectList.Sort when the ar

[fpc-devel]Nested function as argument for TList.Sort

2003-11-26 Thread Pedro Lopez-Cabanillas
Hi, The attached program compiles and works fine under Kylix 3, and also compiles under fpc 1.9, but bombs with this message: An unhandled exception occurred at 0x0807F0B5 : EAccessViolation : Access violation 0x0807F0B5 It happens on TObjectList.Sort when the argument is a local nested funct