[fpc-pascal] Move() vs MemCopy()

Graeme Geldenhuys graemeg.lists at gmail.com
Tue Sep 29 16:05:43 CEST 2009

2009/9/29 Graeme Geldenhuys <graemeg.lists at gmail.com>:
> Could this "alias" procedure be applied somewhere in FPC?  This was
> done before - the case of AssignFile() vs Assign()
> procedure MemCopy(src, dest: pointer; size: SizeInt);
> begin
>  Move(src^, dest^, size);
> end;

here is an improved MemCopy(), with the same parameter list as Move().

procedure MemCopy(const src; var dest; size: SizeInt);
  Move(src, dest, size);

  - Graeme -

fpGUI - a cross-platform Free Pascal GUI toolkit

More information about the fpc-pascal mailing list