Re: [fpc-pascal] What's wrong with this simple test program

2014-12-19 Thread Michael Van Ham
On Fri, Dec 19, 2014, 12:49 Ralf Quint wrote: I have been trying to use tStringList in a larger project of mine, but this just keeps bombing out with a exception. I have been able to reproduce the problem with this very simple test program: program project1; USES Classes; Var T : tStringList;

Re: [fpc-pascal] What's wrong with this simple test program

2014-12-19 Thread Flávio Etrusco
> > Delphi will compile this (like FPC does), but it will fail at runtime. Trust me here, I did the mistake a few times myself when I thought about too many other things. > > Regards, > Sven > Yes and this is just sad. Is there a reasonable case for not disallowing call of constructor as method ou

Re: [fpc-pascal] What's wrong with this simple test program

2014-12-19 Thread Sven Barth
Am 19.12.2014 21:58 schrieb "Ralf Quint" : > > On 12/19/2014 12:53 PM, Joost van der Sluis wrote: >> >> On 12/19/2014 09:48 PM, Ralf Quint wrote: >>> >>> I have been trying to use tStringList in a larger project of mine, but >>> this just keeps bombing out with a exception. >>> I have been able to

Re: [fpc-pascal] What's wrong with this simple test program

2014-12-19 Thread Ralf Quint
On 12/19/2014 12:53 PM, Joost van der Sluis wrote: On 12/19/2014 09:48 PM, Ralf Quint wrote: I have been trying to use tStringList in a larger project of mine, but this just keeps bombing out with a exception. I have been able to reproduce the problem with this very simple test program: program

Re: [fpc-pascal] What's wrong with this simple test program

2014-12-19 Thread Joost van der Sluis
On 12/19/2014 09:48 PM, Ralf Quint wrote: I have been trying to use tStringList in a larger project of mine, but this just keeps bombing out with a exception. I have been able to reproduce the problem with this very simple test program: program project1; USES Classes; Var T : tStringList;

[fpc-pascal] What's wrong with this simple test program

2014-12-19 Thread Ralf Quint
I have been trying to use tStringList in a larger project of mine, but this just keeps bombing out with a exception. I have been able to reproduce the problem with this very simple test program: program project1; USES Classes; Var T : tStringList; S : String; begin S := 'Test'; T.Crea