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] 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] 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

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

2013-12-30 Thread 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; thanks, Dmitry P.S. this message is not as straight forward as it might seem.

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

2013-12-30 Thread Sven Barth
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, right? Managed types (strings, interfaces, dynamic arrays) inside