Move first parameter "protected var"?

Peter N Lewis peter at stairways.com.au
Fri Mar 14 12:27:17 CET 2003


In move.pas, the Move et al are defined as:

procedure MoveLeft  (const Source; var Dest; Count: SizeType); 
asmname '_p_MoveLeft';
procedure MoveRight (const Source; var Dest; Count: SizeType); 
asmname '_p_MoveRight';
procedure Move      (const Source; var Dest; Count: SizeType); 
asmname '_p_Move';

Given the comment in the documentation that const could be passed 
either as value or reference, should the first parameter be 
"protected var"?  I presume since they are type-less, they can't be 
copied, so it has to be reference, so it would always be technically 
ok to be left as const, but "protected var" would seem more 
sensible...?

Is that correct?
    Peter.

-- 
<http://www.interarchy.com/>  <http://download.interarchy.com/>




More information about the Gpc mailing list