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

Home » Public Forums » archive » Re: AND statements
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: AND statements [message #14451 is a reply to message #14428] Wed, 03 March 1999 00:00 Go to previous messageGo to previous message
Steve Scheele is currently offline  Steve Scheele
Messages: 6
Registered: February 1999
Junior Member
>> If you write some code like this:

>> test=Ptr_New()

>> IF Ptr_Valid(test) AND Size(*test, /type) NE 10 THEN print, *test

>> ....can you always guarantee that it will not try to evaluate the second
>> statement if the first one was false - or is this a dangerous tactic to
>> adopt?

I recently took an IDL course from RSI and asked the instructor almost
exactly the same question. I got the same answer you have been getting - no!

It is possible is C and it is not regarded as dangerous. I asked the
instructor to request that this capability be added - I don't hold out much
hope.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: image scaling with object graphics
Next Topic: TRANSREAD - read ASCII tables

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

Current Time: Wed Oct 08 18:59:06 PDT 2025

Total time taken to generate the page: 0.00446 seconds