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

Home » Public Forums » archive » Re: keyword_set([0])
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: keyword_set([0]) [message #48069 is a reply to message #48059] Mon, 20 March 2006 15:49 Go to previous messageGo to previous message
vlk.astro is currently offline  vlk.astro
Messages: 11
Registered: March 2006
Junior Member
JD Smith wrote:

>
> IDL> print, size(b,/N_DIMENSIONS) gt 0 OR keyword_set(b)

Unfortunately, upon further investigation, this doesn't quite work.
The behavior I am looking for is (sorry I wasn't clearer before): if
A=0 and B=[0], then expr(A)=0 and expr(B)=1 in all versions of IDL (for
backwards compatibility and all that)

instead, 5.3 and 6.2 never match up properly --

v5.3 v6.2 expr()
0 0 keyword_set(A)
1 0 keyword_set(B)

1 0 size(A,/dim) gt 0 OR keyword_set(A)
1 1 size(B,/dim) gt 0 OR keyword_set(B)

i.e., if it works in 5.3, it doesn't in 6.2, and vice versa.

Vinay
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: RSINC web mini-bug ??
Next Topic: Need IDL Programmer

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

Current Time: Thu Oct 09 16:44:05 PDT 2025

Total time taken to generate the page: 1.27734 seconds