Re: Duplicate objects [message #61973] |
Tue, 19 August 2008 06:16  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Wox writes:
> Is there an easy way of duplication IDL objects (not their
> references)? You can off course make a new object with obj_new and use
> set/getproperty to transfer all properties, but that's a bit silly no?
The only way I know to do a "deep" copy of an object
is to SAVE and RESTORE it. Alas, this is typically such
a slow process that most of the time it is unusable in
a working program. In every practical case, I've had
to transfer properties.
Join me in asking ITTVIS for a true object COPY mechanism.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
|