On 12/27/14, Marc Santhoff <m.santh...@web.de> wrote:

> function clone(data_in: a_record): a_record;
> var
>   data: Pa_record;
> begin
>   new(data);
     data^ := data_in;  //should work*
> end;

* Might not be a good idea if data contains a class(reference).

Bart
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to