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

Home » Public Forums » archive » Re: Duplicate heap variables recursively
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: Duplicate heap variables recursively [message #51368 is a reply to message #51367] Thu, 16 November 2006 03:30 Go to previous message
enod is currently offline  enod
Messages: 41
Registered: November 2004
Member
You can duplicate one exact variable by using REPLICATE.


Tian


Wox wrote:
> 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
[Message index]
 
Read Message
Read Message
Previous Topic: Duplicate heap variables recursively
Next Topic: Re: Partial summation of a data set!

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

Current Time: Thu Oct 16 20:50:14 PDT 2025

Total time taken to generate the page: 2.39898 seconds