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

Home » Public Forums » archive » Duplicate heap variables recursively
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 heap variables recursively [message #51370] Thu, 16 November 2006 02:32
Wox is currently offline  Wox
Messages: 184
Registered: August 2006
Senior Member
Hello,

Is there and easy way of duplicating heap variables recursively (like
HEAP_FREE does for freeing heap variables).

Something like this (but then with more complicated referencing)
a=ptr_new({p:ptr_new(5)})
b=duplicate(a)
*(*b).p=10

So that *(*a).p == 5 and *(*b).p == 10
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: voxelview
Next Topic: Re: Duplicate heap variables recursively

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

Current Time: Wed Oct 08 17:54:54 PDT 2025

Total time taken to generate the page: 0.00269 seconds