Re: !NULL in IDL 7.1 vs. 8.0 [message #79247] |
Wed, 08 February 2012 14:08  |
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   |
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  |
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.
|
|
|