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

Home » Public Forums » archive » 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 #83629 is a reply to message #83531] Fri, 15 March 2013 11:51 Go to previous messageGo to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On 3/15/13 2:10 AM, Tom Grydeland wrote:
> On Wednesday, March 13, 2013 2:46:17 PM UTC, Mike Galloy wrote:
>> But !null is undefined:
>
> Not so undefined that I cannot assign it to a variable, or return it
> from a function, or use it as a good 'missing value' indicator in
> most cases. It is also pretty damn useful if you want to build an
> array by parts (although, as Bob pointed out, I could use a LIST for
> that last case).

Nothing is so undefined that you can't return it from a function. !null
is special in that you can assign it to a variable, so assigning it to a
structure element would make some sense. It's just that I think the
typical use case for a structure is not to rebuild the whole thing when
you want to change a value (like you would if you switched the value
from undefined type to any other type).

Why not a HASH? It's made for more dynamic situations like this.

Mike
--
Michael Galloy
www.michaelgalloy.com
Modern IDL: A Guide to IDL Programming (http://modernidl.idldev.com)
Research Mathematician
Tech-X Corporation
[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
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: HASH makes too many temporaries
Next Topic: MGlib IDL library

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

Current Time: Thu Oct 09 23:49:26 PDT 2025

Total time taken to generate the page: 0.64047 seconds