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 #48071 is a reply to message #48070] Mon, 20 March 2006 13:46 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)

That is simple and elegant!

Perfect!

> Personally, I would change the logic so that a single element vector
> isn't required to be true by default, or isn't ever passed in for
> boolean arguments/keywords. Changing the logic in this way should be
> compatible across IDL 5.3/6.2, without new and hard to maintain tests
> like this.

yes, I've learnt my lesson, at least in this case!

Thanks,
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: Sun Oct 12 13:04:21 PDT 2025

Total time taken to generate the page: 0.32002 seconds