Re: [fpc-pascal] Warning: Variable xxx does not seem to be initialized

2013-12-31 Thread Sven Barth
On 31.12.2013 21:47, Marcos Douglas wrote: The structure that does same but does not have this problem is the object type. But is it used yet? I think Delphi make it deprecated, right? What do you mean "But is it used yet?"? Is recommended to use it or FPC team recommends to use "record" ins

Re: [fpc-pascal] Warning: Variable xxx does not seem to be initialized

2013-12-31 Thread Marcos Douglas
On Tue, Dec 31, 2013 at 6:20 PM, Sven Barth wrote: > On 31.12.2013 15:09, Marcos Douglas wrote: >> >> On Tue, Dec 31, 2013 at 6:33 AM, Sven Barth >> wrote: >>> >>> Am 31.12.2013 00:48 schrieb "Dmitry Boyarintsev" >>> : >>> >>> Some new syntax has to be introduced to avoid the warning. S

Re: [fpc-pascal] Warning: Variable xxx does not seem to be initialized

2013-12-31 Thread Marcos Douglas
On Tue, Dec 31, 2013 at 6:18 PM, Sven Barth wrote: > On 31.12.2013 15:06, Marcos Douglas wrote: >> >> On Mon, Dec 30, 2013 at 9:38 PM, Sven Barth >> wrote: >>> >>> Am 30.12.2013 20:08 schrieb "Marcos Douglas" : >>> >>> Hi, I'm using FPC 2.6.2 and {advancedrecords}. The co

Re: [fpc-pascal] Warning: Variable xxx does not seem to be initialized

2013-12-31 Thread Sven Barth
On 31.12.2013 15:09, Marcos Douglas wrote: On Tue, Dec 31, 2013 at 6:33 AM, Sven Barth wrote: Am 31.12.2013 00:48 schrieb "Dmitry Boyarintsev" : Some new syntax has to be introduced to avoid the warning. Something like: type TMyRec = record record procedure Print; end; record p

Re: [fpc-pascal] Warning: Variable xxx does not seem to be initialized

2013-12-31 Thread Sven Barth
On 31.12.2013 15:06, Marcos Douglas wrote: On Mon, Dec 30, 2013 at 9:38 PM, Sven Barth wrote: Am 30.12.2013 20:08 schrieb "Marcos Douglas" : Hi, I'm using FPC 2.6.2 and {advancedrecords}. The compiler shows a warning when I use a record variable. IMO this is a bug because record variables

RE: [fpc-pascal] Free Pascal 2.6.4-rc1 - IDE crashes

2013-12-31 Thread Pierre Free Pascal
Hi Raoul, Thanks for testing 2.6.4rc1 out. I could not reproduce your problem on my setup (Windows-7 64-bit). Are you sure that the problem also appears when simply compiling this source: (This is just demo/text/hello.pp with a wrong line added). { This file is part of the Free Pasc

Re: [fpc-pascal] Warning: Variable xxx does not seem to be initialized

2013-12-31 Thread Marcos Douglas
On Tue, Dec 31, 2013 at 6:33 AM, Sven Barth wrote: > Am 31.12.2013 00:48 schrieb "Dmitry Boyarintsev" > : > > >> >> Some new syntax has to be introduced to avoid the warning. Something like: >> >> type >> TMyRec = record >> record procedure Print; >> end; >> >> record procedure TMyRec.Prin

Re: [fpc-pascal] Warning: Variable xxx does not seem to be initialized

2013-12-31 Thread Marcos Douglas
On Mon, Dec 30, 2013 at 9:38 PM, Sven Barth wrote: > Am 30.12.2013 20:08 schrieb "Marcos Douglas" : > > >> >> Hi, >> >> I'm using FPC 2.6.2 and {advancedrecords}. >> The compiler shows a warning when I use a record variable. IMO this is >> a bug because record variables need not be initialized, ri

Re: [fpc-pascal] How to know the string type of a variable?

2013-12-31 Thread Jürgen Hestermann
Am 2013-12-30 20:17, schrieb Mattias Gaertner: > On Mon, 30 Dec 2013 19:19:20 +0200 > Juha Manninen wrote: >> On Mon, Dec 30, 2013 at 2:35 PM, Marcos Douglas wrote: >>> Is possible to know what string type of a variable (AnsiString, >>> UTF8String, RawByteString, etc)? >> When UTF-8 encoded stri

Re: [fpc-pascal] Warning: Variable xxx does not seem to be initialized

2013-12-31 Thread Sven Barth
Am 31.12.2013 00:48 schrieb "Dmitry Boyarintsev" : > > Some new syntax has to be introduced to avoid the warning. Something like: > > type > TMyRec = record > record procedure Print; > end; > > record procedure TMyRec.Print; > begin > writeln('foo'); > end; We don't need a new syntax for