comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Duplicate objects
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Duplicate objects [message #61974] Tue, 19 August 2008 06:06 Go to next message
Wox is currently offline  Wox
Messages: 184
Registered: August 2006
Senior Member
Hi,

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?

Thx,

Wout
Re: Duplicate objects [message #62035 is a reply to message #61974] Wed, 20 August 2008 19:43 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Mark writes:

> But didn't some guy called Coyote write an article about copying
> objects?
>
> http://www.dfanning.com/tips/copy_objects.html

Most illuminating. Someone ought to give that guy a
book contract. :-)

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.")
Re: Duplicate objects [message #62037 is a reply to message #61974] Wed, 20 August 2008 16:38 Go to previous message
Mark[1] is currently offline  Mark[1]
Messages: 66
Registered: February 2008
Member
The SAVE/RESTORE mechanism isn't always too slow. I use it every time
I print a graphics object.

Be aware that copying an object is non-trivial. What do you do with
references to other objects: copy the reference or copy the object?
The former is, I think, called a shallow copy and the latter is called
a deep copy. There are pitfalls in either case.

But didn't some guy called Coyote write an article about copying
objects?

http://www.dfanning.com/tips/copy_objects.html
Re: Duplicate objects [message #62069 is a reply to message #61974] Tue, 19 August 2008 06:53 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Wox writes:

> I have always wondered how to do that. I report bugs to
> techsupport@ittvis.com but what about feature requests? Do they have
> some web forms or do I just spam them.

Spam'em. Use all 10000 of your aliases or we don't have a chance. :-(

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.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: find positions in vectors
Next Topic: Re: find positions in vectors

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 12:53:42 PDT 2025

Total time taken to generate the page: 0.71996 seconds