[fpc-pascal] Mozilla XPCOM

Frank Peelo f26p at eircom.net
Thu Jun 10 09:04:00 CEST 2010


On 09/06/10 15:50, Marcos Douglas wrote:
> On Tue, Jun 8, 2010 at 3:44 PM, Luiz Americo Pereira Camara
> <luizmed at 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




More information about the fpc-pascal mailing list