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

Home » Public Forums » archive » Re: pointer to structures
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: pointer to structures [message #19560 is a reply to message #19558] Tue, 04 April 2000 00:00 Go to previous messageGo to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
J.D. Smith (jdsmith@astro.cornell.edu) writes:

> Uh oh... forgot to test your code I'm afraid. You have the precendence correct,
> but the solution reversed. You must force the pointer dereference to occur
> *before* structure dereference... see the other posts.
>
> If you had something like this:
>
> filter={points:ptr_new(['a','b']),pt1_value:200, pt2_value:'X_WHYLOG'}
>
> You can use the precendence to your advantage, visa vis:
>
> print,*filter.points
>
> Keeping the precendence in mind can eliminate extraneous parentheses, which, for
> everyone except lisp programmers, often add confusion.

Sorry. I'm getting the house ready to sell and I should
know better than to check the newsgroup while I'm waiting
for the trim to dry. :-(

Cheers,

David

P.S. I'll check in next week. :-(

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: get variables name
Next Topic: Re: Speed up movie in object graphics.

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

Current Time: Wed Oct 08 19:56:02 PDT 2025

Total time taken to generate the page: 0.29390 seconds