[Lazarus] Fixes 2.6.2 cod breaks 2.6.0 code?

Graeme Geldenhuys graeme at geldenhuys.co.uk
Thu Mar 14 15:08:06 CET 2013


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

[personal opinion]
I agree fully. I don't really like Dec(), Prev() etc methods.


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

Is that C-style operators (compiler parameter -Sc) translated to Free
Pascal operator overloads?


> (what if the operator function was 'inline' if we have such a keyword?)


No idea. Better try it and find out. :)


Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/





More information about the Lazarus mailing list