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

Home » Public Forums » archive » Re: Copying (Duplicating) Objects
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Copying (Duplicating) Objects [message #31028 is a reply to message #31027] Wed, 05 June 2002 14:40 Go to previous messageGo to previous message
Mark Hadfield is currently offline  Mark Hadfield
Messages: 783
Registered: May 1995
Senior Member
"M. Katz" <MKatz843@onebox.com> wrote in message
news:4a097d6a.0206050708.7dc1b091@posting.google.com...

> After 4 months away from IDL, I can't remember how to duplicate an
> object variable.

That's OK. After 10 years with it, I can't remember it either.

> I know that the simple command, b = a, only makes b and a have the
> same reference--they point to the same object.

Indeed.

> What's the command to make b an entirely new object but identical to
> a.

There isn't one, at least not built-in. The simplest & most robust
(though not foolproof) method of doing this is to SAVE the object to
disk then RESTORE it.

Try searching Google groups for "clone object group:comp.lang.idl-pvwave"

--
Mark Hadfield "Ka puwaha et tai nei, Hoea tatou"
m.hadfield@niwa.co.nz
National Institute for Water and Atmospheric Research (NIWA)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: VIP, Julday
Next Topic: Re: Multiple PS-files?

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

Current Time: Wed Oct 08 17:27:39 PDT 2025

Total time taken to generate the page: 0.00397 seconds