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

Home » Public Forums » archive » !null values in arrays
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
!null values in arrays [message #74050] Wed, 15 December 2010 10:11
Gray is currently offline  Gray
Messages: 253
Registered: February 2010
Senior Member
Hi all,

I was just wondering if anyone else would find it useful to have the
ability to store !null as elements in otherwise homogenous arrays.
Wouldn't this be a much more elegant way of encoding missing data than
using NaNs? Of course, a lot of functionality would have to change -
like, for example, one would have to be able to do

IDL> print, 3 + !null
3

instead of what actually occurs:

IDL> print, 3 + !null
% Variable is undefined: <UNDEFINED>

However, writing this post is worth it just to include that
tautological error message.

--Gray
[Message index]
 
Read Message
Previous Topic: Widget not rendering properly
Next Topic: SHARP and ROUND

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

Current Time: Wed Oct 08 19:42:47 PDT 2025

Total time taken to generate the page: 0.00398 seconds