Hey guys

Hey guys,

I have a lot of doubts :( Sorry for the flood.

Firstly I have this function:
class function RoundUp(Value: Int32): Int32; static;

Would whether I write the Value as a constant parameter it work as an optimization? Or it no makes much sense.

In Marco Cantu's book I see:
"[..] these optimizations are the most common
reason for using constant parameters, a features that make limited sense for
ordinal and scalar types."

But RTL have functions such as 
Max (const A, B: Integer): Integer;

Thanks in advance :D

Comments