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);
procedure MoveRight (const Source; var Dest; Count: SizeType);
procedure Move (const Source; var Dest; Count: SizeType);
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
Is that correct?
More information about the Gpc