Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[Delphi] Shallow vs. Deep copies?

7 views
Skip to first unread message

Ritchie_Annand

unread,
Jul 31, 1995, 3:00:00 AM7/31/95
to
Just wondering how and whether Delphi can perform "deep copies"
of objects. (Or whether it can perform shallow ones :) Given:

type
TMyObject = class
Font : TFont;
end;

and

var
A,B : TMyObject;

Does A := B merely copy over the Font pointer? (I'd imagine it
does) Is there a way of doing a deep copy, where the Font member
was actually itself copied, instead of the pointer?

Help on this much appreciated.

--=- Ritchie Annand
New Product Development
Malibu Engineering Ltd.


0 new messages