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 #83529 is a reply to message #83525] Wed, 13 March 2013 01:17 Go to previous messageGo to previous message
tom.grydeland is currently offline  tom.grydeland
Messages: 51
Registered: September 2012
Member
On Tuesday, March 12, 2013 6:15:57 PM UTC, bobnn...@gmail.com wrote:

> 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.

I know IDL won't let me change it, but I will happily rebuild structures to have the same field name and different contents to achieve the dynamism that IDL doesn't have. As long as my structures are anonymous, this works fine.

And it would be useful _to me_ if I could put a !NULL in a struct. I'm using the struct for UVALUEs in widgets, and it would be nice if they allowed _any_ well-defined IDL value.

> 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.

Sure. Thanks!

> Bob

--T
[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 09:42:12 PDT 2025

Total time taken to generate the page: 1.43955 seconds