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/


--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to