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

Home » Public Forums » archive » Re: !NULL in IDL 7.1 vs. 8.0
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: !NULL in IDL 7.1 vs. 8.0 [message #79247] Wed, 08 February 2012 14:08 Go to next message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
!null was introduced in IDL 8.0. So, no surprises there.

On Feb 8, 7:33 pm, TonyLanz <tolan...@gmail.com> wrote:
> Hey all,
> I'm debugging some IDL code and I noticed some odd behavior with the
> system variable !NULL in IDL 7.1, curious if others had seen this....I
> suspect it's a bug and I can avoid it in IDL 8.
>
> In IDL 7.1 if I do a
>
> IDL>print,!NULL
>
> I get % Not a legal system variable: !NULL.
>
> In IDL 8 it properly returns !NULL. Have others observed this?
>
> Tony
Re: !NULL in IDL 7.1 vs. 8.0 [message #94313 is a reply to message #79247] Thu, 06 April 2017 01:39 Go to previous messageGo to next message
zhangchengxin2011 is currently offline  zhangchengxin2011
Messages: 1
Registered: April 2017
Junior Member
On Thursday, 9 February 2012 06:08:33 UTC+8, Paulo Penteado wrote:
> !null was introduced in IDL 8.0. So, no surprises there.
>
> On Feb 8, 7:33 pm, TonyLanz <tolan...@gmail.com> wrote:
>> Hey all,
>> I'm debugging some IDL code and I noticed some odd behavior with the
>> system variable !NULL in IDL 7.1, curious if others had seen this....I
>> suspect it's a bug and I can avoid it in IDL 8.
>>
>> In IDL 7.1 if I do a
>>
>> IDL>print,!NULL
>>
>> I get % Not a legal system variable: !NULL.
>>
>> In IDL 8 it properly returns !NULL. Have others observed this?
>>
>> Tony

Do you know how to use "!null" without error in IDL 7.1? Since an IDL library uses '!null', however my working environment is IDL 7.1
Re: !NULL in IDL 7.1 vs. 8.0 [message #94315 is a reply to message #94313] Thu, 06 April 2017 12:09 Go to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
On Thursday, April 6, 2017 at 4:39:30 AM UTC-4, zhangche...@gmail.com wrote:
> On Thursday, 9 February 2012 06:08:33 UTC+8, Paulo Penteado wrote:

>>> Tony
>
> Do you know how to use "!null" without error in IDL 7.1? Since an IDL library uses '!null', however my working environment is IDL 7.1

In 7.1 you could try defining a system variable

defsysv,'!NULL',-10001

which will at least get you past compilation errors because !NULL doesn't exist in 7.1. But the author probably uses other post-V8.0 syntax such as the /NULL keyword to WHERE(), so you probably still won't be able to compile. So I would think you have to edit the code to remove the use of !NULL.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: envi/idl question from a newbie
Next Topic: IDL 8.5.2 ?

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

Current Time: Wed Oct 08 13:31:54 PDT 2025

Total time taken to generate the page: 0.00607 seconds