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

Home » Public Forums » archive » Re: Storing !NULL in struct
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: Storing !NULL in struct [message #83530 is a reply to message #83529] Tue, 12 March 2013 11:15 Go to previous messageGo to previous message
Bob[4] is currently offline  Bob[4]
Messages: 24
Registered: April 2009
Junior Member
On Tuesday, March 12, 2013 6:09:37 AM UTC-6, Tom Grydeland wrote:
> Any reason I shouldn't expect this to work?
>
>
>
> IDL> help, { foo: !null }
>
>
>
> --T

Structure fields must be defined at the time of creation and the type (and rank and array sizes) cannot be changed after that. Thus, if you put a !null in the field you could never change it to anything else. Not very useful. If you do not know the detail of whatever you are going to put in the structure you have several options. Traditionally, you would use a PTR. These days you could use a LIST or HASH instead.

Bob
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Findind NANs in unformatted image data
Next Topic: Re: Annular Zernike polynomials

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

Current Time: Sat Oct 11 10:30:06 PDT 2025

Total time taken to generate the page: 0.32287 seconds