[fpc-pascal] Const params question

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Wed Oct 11 12:52:23 CEST 2017


On 2017-10-11 11:36, Michael Van Canneyt wrote:
> In the case of const, you don't know. The compiler will do as it sees fit.

Oh wow, I really didn't know that.

> ....snip....
> The difference is that you can assign something to a var parameter,
> but you cannot assign something to a constref.


Thank you Michael, that was very informative information. One is never 
too old to learn. ;-)

Regards,
   Graeme

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

My public PGP key:  http://tinyurl.com/graeme-pgp



More information about the fpc-pascal mailing list