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

Home » Public Forums » archive » logical_true vs nothing in an if statment
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: logical_true vs nothing in an if statment [message #86014 is a reply to message #85937] Tue, 24 September 2013 07:48 Go to previous messageGo to previous message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
On 09/19/13 16:22, wlandsman wrote:
> I work with an IDL programmer who uses LOGICAL_TRUE *everywhere*
> including statements like
>
> if LOGICAL_TRUE(Keyword_set(flag)) then setflag,...
>
> He said he has been burned too many times before on the definition of
> "truth", so he always uses LOGICAL_TRUE() even in cases where it is
> unnecessary, such as when the variable can only take on the values 0
> and 1.
>
> His code drives me crazy... --Wayne

Ha.

I love the phrase:
'burned too many times before on the definition of "truth" '

Makes me feel sort-of (but not really) sympathetic towards lawyers.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: idl: turn string value into variable name part2
Next Topic: Reading large files with restore

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

Current Time: Wed Oct 15 13:47:50 PDT 2025

Total time taken to generate the page: 1.36190 seconds