[fpc-pascal]Classes and copying

James Mills prologic at prologitech.com
Wed Feb 12 11:52:30 CET 2003


Hi all,

With respect to classes (and perhaps also objects), how do you copy the
contents of a class in memory (an object) to another?

ie:

var
	a: TClass;
   b: TClass;

begin
  a := TClass.init;
  b := a; //This only copies the pointer and doesn't work ??
end.

cheers
James



More information about the fpc-pascal mailing list