[fpc-pascal] Re: Feature proposal: function-based assignment operators

leledumbo leledumbo_cool at yahoo.co.id
Fri Mar 29 03:10:01 CET 2013


> As to the C-style += operator, I have one question, will it makes code
slightly faster? because if you use Inc() or Dec() there will be a function
call?  or, the compiler will always try to inline Inc or Dec?

No, as been explained, it's internally translated to the equivalent non-C
style by the compiler. Inc/Dec is always processor's single inc/dec
instruction AFAIK (at least that's how it's implemented if you dig in to
their code).



--
View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Feature-proposal-function-based-assignment-operators-tp5713868p5713893.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.



More information about the fpc-pascal mailing list