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

Home » Public Forums » archive » Re: Extract a sub-structure from a structure
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: Extract a sub-structure from a structure [message #47179 is a reply to message #47178] Thu, 26 January 2006 08:15 Go to previous messageGo to previous message
L. Testut is currently offline  L. Testut
Messages: 16
Registered: January 2006
Junior Member
Hi David,

Even with the parantheses it doesn't work ?
With solution 1 it becomes more tricky to change the type of each
field parameter in the structure ? and what about the memory occupied
by the old complete structure (which I don't need anymore)...or was it
a joke ?

Then

toto=findgen(100)
print,toto[where(toto lt 50)]
toto=toto[where(toto lt 50)]

this sequence works and I've read on this newsgroup that a
de-referenced pointer is lik a variable
so

toto=ptr_new(findgen(100))
print,*toto[where(*toto lt 50)]
*toto=*toto[where(*toto lt 50)]

why this last sequence doesn't work ? even with parantheses ?

Cheers,
Laurent
PS: what is the local time in Fort Collins ?
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Problem of precedence with pointer and structure
Next Topic: q5/ ***Hot stuff - check this out !!! q5/

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

Current Time: Fri Oct 10 04:52:52 PDT 2025

Total time taken to generate the page: 0.88323 seconds