On 09/06/10 15:50, Marcos Douglas wrote:
On Tue, Jun 8, 2010 at 3:44 PM, Luiz Americo Pereira Camara
<luiz...@oi.com.br>  wrote:
Marcos Douglas escreveu:
Exactly.
Therefore I always used 'const' only at 'strings' params. I thought it
had changed, but not.  ;-)
It can be useful for record parameters also

If the record have strings, I think.

Surely it's for any parameter which the called procedure does not change, which would be more efficiently passed as a reference? That would include any record larger than a few bytes, and arrays.

FP

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to