Re: [fpc-pascal] Records as properties and Delphi compiler error

2009-06-08 Thread fpclist
Excellent explanation. Thanks Martin. Regards, Nino //*** On Monday 08 June 2009 20:33:48 Martin Friebe wrote: > fpcl...@silvermono.co.za ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/

Re: [fpc-pascal] Records as properties and Delphi compiler error

2009-06-08 Thread Doug Chamberlin
fpcl...@silvermono.co.za wrote: Graeme Geldenhuys wrote: Can you please refrain from quoting the *whole* previous message... Okay. Point taken. Thank you, Nino! Everyone, please trim your quotes! ___ fpc-pascal maillist - fpc-pascal@lists.freepa

Re: [fpc-pascal] Records as properties and Delphi compiler error

2009-06-08 Thread Martin Friebe
fpcl...@silvermono.co.za wrote: On Sunday 07 June 2009 22:19:47 Jonas Maebe wrote: On 07 Jun 2009, at 10:35, fpcl...@silvermono.co.za wrote: A high level, a class is like a record that has been modified to include functions and procedures. I know that I'm over simplifying thing here, pl

Re: [fpc-pascal] Records as properties and Delphi compiler error

2009-06-08 Thread fpclist
On Monday 08 June 2009 19:55:00 Graeme Geldenhuys wrote: > Hi Nino, > > Can you please refrain from quoting the *whole* previous message, when your > reply only relates to one or two lines. If other developers want to read > the whole context of the message thread they can look in their email > hi

Re: [fpc-pascal] Records as properties and Delphi compiler error

2009-06-08 Thread Graeme Geldenhuys
Hi Nino, Can you please refrain from quoting the *whole* previous message, when your reply only relates to one or two lines. If other developers want to read the whole context of the message thread they can look in their email history or the mailing list archive. It is REALLY annoying seeing

Re: [fpc-pascal] Records as properties and Delphi compiler error

2009-06-08 Thread fpclist
On Sunday 07 June 2009 22:19:47 Jonas Maebe wrote: > On 07 Jun 2009, at 10:35, fpcl...@silvermono.co.za wrote: > > A high level, a class is like a record that has been modified to > > include > > functions and procedures. I know that I'm over simplifying thing > > here, please > > bare with me. > >

Re: [fpc-pascal] Records as properties and Delphi compiler error

2009-06-07 Thread Jonas Maebe
On 07 Jun 2009, at 10:35, fpcl...@silvermono.co.za wrote: A high level, a class is like a record that has been modified to include functions and procedures. I know that I'm over simplifying thing here, please bare with me. The difference you skip over is the fundamental reason why one wor

Re: [fpc-pascal] Records as properties and Delphi compiler error

2009-06-07 Thread fpclist
Hi Jonas Thanks for the reply. A high level, a class is like a record that has been modified to include functions and procedures. I know that I'm over simplifying thing here, please bare with me. I'm trying to understand the logic employed by the creators of Delphi where they don't allow to w

Re: [fpc-pascal] Records as properties and Delphi compiler error

2009-06-06 Thread Jonas Maebe
On 06 Jun 2009, at 17:36, fpcl...@silvermono.co.za wrote: Is there a reason why the following code fails to compile in Delphi but compile in FPC? Could the reason be that FPC allows the use of global properties? No, it's an error in FPC which has been fixed in 2.3.1: http://wiki.freepascal

[fpc-pascal] Records as properties and Delphi compiler error

2009-06-06 Thread fpclist
Hi Guys, Is there a reason why the following code fails to compile in Delphi but compile in FPC? Could the reason be that FPC allows the use of global properties? Tested with Delphi 5 and up. The Delphi compiler complains about the lines: TestClass.TestRec.X := 10; TestClass.TestRec.Y := 20; wi