Re: [Lazarus] Fixes 2.6.2 cod breaks 2.6.0 code?

2013-03-29 Thread Marco van de Voort
On Thu, Mar 14, 2013 at 09:49:55AM +0100, Mattias Gaertner wrote: [...] What fixes branch are you talking about? FPC 2.6 fixes or Lazarus 1.0 fixes? In the next release we should mention that it uses a newer compiler, which includes many bug fixes, but contains a few

Re: [Lazarus] Fixes 2.6.2 cod breaks 2.6.0 code?

2013-03-29 Thread Mattias Gaertner
On Fri, 29 Mar 2013 15:54:49 +0100 Marco van de Voort mar...@stack.nl wrote: [...] Yes, but 2.6.2 contains a few incompatibilities as well and Frank is right that a 1.0.8 release is meant as a bug fix release, so it should not contain incompatibilities. That's a sliding slope. Strictly

Re: [Lazarus] Fixes 2.6.2 cod breaks 2.6.0 code?

2013-03-14 Thread Mattias Gaertner
On Wed, 13 Mar 2013 17:52:59 +0100 Vincent Snijders vincent.snijd...@gmail.com wrote: [...] What fixes branch are you talking about? FPC 2.6 fixes or Lazarus 1.0 fixes? In the next release we should mention that it uses a newer compiler, which includes many bug fixes, but contains a few

Re: [Lazarus] Fixes 2.6.2 cod breaks 2.6.0 code?

2013-03-14 Thread Sven Barth
Am 14.03.2013 09:28, schrieb Mattias Gaertner: On Wed, 13 Mar 2013 17:52:59 +0100 Vincent Snijders vincent.snijd...@gmail.com wrote: [...] What fixes branch are you talking about? FPC 2.6 fixes or Lazarus 1.0 fixes? In the next release we should mention that it uses a newer compiler, which

Re: [Lazarus] Fixes 2.6.2 cod breaks 2.6.0 code?

2013-03-14 Thread Mattias Gaertner
On Thu, 14 Mar 2013 09:41:18 +0100 Sven Barth pascaldra...@googlemail.com wrote: Am 14.03.2013 09:28, schrieb Mattias Gaertner: On Wed, 13 Mar 2013 17:52:59 +0100 Vincent Snijders vincent.snijd...@gmail.com wrote: [...] What fixes branch are you talking about? FPC 2.6 fixes or Lazarus

Re: [Lazarus] Fixes 2.6.2 cod breaks 2.6.0 code?

2013-03-14 Thread Lukasz Sokol
On 13/03/2013 17:27, Graeme Geldenhuys wrote: Anyway, you have to change your code to the following. GCache.ClientHeight := GCache.ClientHeight - (DefaultRowHeight * FooterRowCount + 2); ... which is sort of more readable than Dec() construct Frank was using, (but it is IMOTMV only) ...

Re: [Lazarus] Fixes 2.6.2 cod breaks 2.6.0 code?

2013-03-14 Thread Graeme Geldenhuys
On 2013-03-14 11:11, Lukasz Sokol wrote: GCache.ClientHeight := GCache.ClientHeight - (DefaultRowHeight * FooterRowCount + 2); ... which is sort of more readable than Dec() construct Frank was using, (but it is IMOTMV only) ... [personal opinion] I agree fully. I don't really like

Re: [Lazarus] Fixes 2.6.2 cod breaks 2.6.0 code?

2013-03-14 Thread Frank Church
On 13 March 2013 17:20, Frank Church vfcli...@gmail.com wrote: On 13 March 2013 16:52, Vincent Snijders vincent.snijd...@gmail.com wrote: 2013/3/13 Frank Church vfcli...@gmail.com: Upgrading to Lazarus 1.0.7 with FPC 2.6.2 raised this error in a file I was compiling? What does it mean?

Re: [Lazarus] Fixes 2.6.2 cod breaks 2.6.0 code?

2013-03-14 Thread Frank Church
On 14 March 2013 14:08, Graeme Geldenhuys gra...@geldenhuys.co.uk wrote: On 2013-03-14 11:11, Lukasz Sokol wrote: GCache.ClientHeight := GCache.ClientHeight - (DefaultRowHeight * FooterRowCount + 2); ... which is sort of more readable than Dec() construct Frank was using, (but it is

Re: [Lazarus] Fixes 2.6.2 cod breaks 2.6.0 code?

2013-03-14 Thread Graeme Geldenhuys
On 2013-03-14 14:42, Frank Church wrote: domain better. For instance if you are iterating over an array where elements are referenced by an integers, +1, +2 etc give the impression your program involves number arithmetic, where as Next and Prev, or And why I created and use an Iterator unit,

Re: [Lazarus] Fixes 2.6.2 cod breaks 2.6.0 code?

2013-03-14 Thread Sven Barth
Am 14.03.2013 15:25, schrieb Frank Church: On 13 March 2013 17:20, Frank Church vfcli...@gmail.com wrote: On 13 March 2013 16:52, Vincent Snijders vincent.snijd...@gmail.com wrote: 2013/3/13 Frank Church vfcli...@gmail.com: Upgrading to Lazarus 1.0.7 with FPC 2.6.2 raised this error in a file

Re: [Lazarus] Fixes 2.6.2 cod breaks 2.6.0 code?

2013-03-14 Thread Sven Barth
Am 14.03.2013 12:11, schrieb Lukasz Sokol: I also believe the new FPC changes also means that with properties you also can't use the short *= += -= etc syntax, which I loved to use. The above would have been written as GCache.ClientHeight -= (DefaultRowHeight * FooterRowCount + 2); and

Re: [Lazarus] Fixes 2.6.2 cod breaks 2.6.0 code?

2013-03-14 Thread Lukasz Sokol
On 14/03/2013 16:35, Sven Barth wrote: Am 14.03.2013 12:11, schrieb Lukasz Sokol: I also believe the new FPC changes also means that with properties you also can't use the short *= += -= etc syntax, which I loved to use. The above would have been written as GCache.ClientHeight -=

[Lazarus] Fixes 2.6.2 cod breaks 2.6.0 code?

2013-03-13 Thread Frank Church
Upgrading to Lazarus 1.0.7 with FPC 2.6.2 raised this error in a file I was compiling? What does it mean? procedure TRxDBGrid.CheckNewCachedSizes(var AGCache: TGridDataCache); begin if (rdgFooterRows in OptionsRx) and (FooterRowCount 0) then Dec(GCache.ClientHeight, DefaultRowHeight *

Re: [Lazarus] Fixes 2.6.2 cod breaks 2.6.0 code?

2013-03-13 Thread Vincent Snijders
2013/3/13 Frank Church vfcli...@gmail.com: Upgrading to Lazarus 1.0.7 with FPC 2.6.2 raised this error in a file I was compiling? What does it mean? procedure TRxDBGrid.CheckNewCachedSizes(var AGCache: TGridDataCache); begin if (rdgFooterRows in OptionsRx) and (FooterRowCount 0) then

Re: [Lazarus] Fixes 2.6.2 cod breaks 2.6.0 code?

2013-03-13 Thread Flávio Etrusco
On Wed, Mar 13, 2013 at 1:10 PM, Frank Church vfcli...@gmail.com wrote: Upgrading to Lazarus 1.0.7 with FPC 2.6.2 raised this error in a file I was compiling? What does it mean? procedure TRxDBGrid.CheckNewCachedSizes(var AGCache: TGridDataCache); begin if (rdgFooterRows in OptionsRx) and

Re: [Lazarus] Fixes 2.6.2 cod breaks 2.6.0 code?

2013-03-13 Thread Frank Church
On 13 March 2013 16:52, Vincent Snijders vincent.snijd...@gmail.com wrote: 2013/3/13 Frank Church vfcli...@gmail.com: Upgrading to Lazarus 1.0.7 with FPC 2.6.2 raised this error in a file I was compiling? What does it mean? procedure TRxDBGrid.CheckNewCachedSizes(var AGCache: TGridDataCache);

Re: [Lazarus] Fixes 2.6.2 cod breaks 2.6.0 code?

2013-03-13 Thread Graeme Geldenhuys
On 2013-03-13 16:10, Frank Church wrote: Is the fixes branch supposed to introduce new functionality that can break code that compiled in previous releases? For FPC yes that is the case. As Flavio stated. You can't pass a property as a var parameter any more. Annoying, but I the FPC devel had