[fpc-pascal] passing a class parameter as a const

Graeme Geldenhuys graemeg.lists at gmail.com
Fri Jan 12 14:05:40 CET 2007


Hi

Does passing a class parameter as a const make any difference?

eg:

  Add(const AObject: TtiObject);

      vs

  Add(AObject: TtiObject);


>From what I can see it shouldn't.  Most Delphi code and Free Pascal
FCL code doesn't use 'const' for class parameters.



-- 
Graeme Geldenhuys

There's no place like S34° 03.168'  E018° 49.342'



More information about the fpc-pascal mailing list