[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AND statements

>>If you write some code like this:


>>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