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

Home » Public Forums » archive » V5.4 SIZE() for undefined variable
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
V5.4 SIZE() for undefined variable [message #24304] Thu, 22 March 2001 22:57
Wayne Landsman is currently offline  Wayne Landsman
Messages: 117
Registered: January 1997
Senior Member
I don't remember seeing it mentioned before that the output of the SIZE
function for undefined variables changed in IDL V5.4. The last
element of the vector returned by SIZE() for an undefined variable is
now 0 rather than 1. Since this value is supposed to be the number of
elements in the variable, the V5.4 output makes more sense. But at
least one astronomical package had taken for granted the previous IDL
behaviour and so had to be updated to be compatible with IDL V5.4.
Cheers, --Wayne

IDL> print,!version
{ sparc sunos unix 5.4 Sep 25 2000 64 64}
IDL> delvar,x
IDL> print,size(x)
0 0 0

IDL> print,!VERSION
{ sparc sunos unix 5.3 Nov 11 1999}
IDL> delvar,x
IDL> print,size(x)
0 0 1
[Message index]
 
Read Message
Previous Topic: Re: Colour fill contour plots
Next Topic: Idlde 5.4 under RedHat 6.2: Crashes and hanging procs

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

Current Time: Wed Oct 08 11:11:36 PDT 2025

Total time taken to generate the page: 0.00405 seconds