[Lazarus] Fixes 2.6.2 cod breaks 2.6.0 code?

Lukasz Sokol el.es.cr at gmail.com
Thu Mar 14 12:11:12 CET 2013


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 IMO&TMV only) ...

> 
> 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 this is indeed surprising (but since operator overloads are functions, and
first one to this operator needs to be 'var', then I guess, not really)
(what if the operator function was 'inline' if we have such a keyword?)

> 
> Regards,
>   - Graeme -
> 
L.





More information about the Lazarus mailing list