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

Home » Public Forums » archive » 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
AND statements [message #14504] Sun, 28 February 1999 00:00 Go to previous message
Phil Aldis is currently offline  Phil Aldis
Messages: 11
Registered: February 1999
Junior Member
Hi,
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?

Oh, by the way, in a day or two I should be able to put out a little bit
of code which might be of interest to some. I did it at home so unlike
most of my programs I can let others use it. It will (hopefully) when
passed a pointer free up any heap memory, including, pointer arrays,
structures, objects. I suupose I could fairly simply extend it to object
references by simply using Obj_Class on the passed object reference,
then using Execute to create a structure and then it would be just like
normal. Although that addition might take a little while longer. If
anyone has any suggestions, please e-mail to let me know, (or if someone
else has done a program like this before).

Cheers,
Phil

P.S. If you reply, can you cc to philaldis@geocities.com, as well as to
the newsgroup, as my newsgroup feed seems to be more than a little
selective about the messages it picks up.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Drag-Drop Possible in IDL5.2 ??
Next Topic: Re: XResources and menu mnemonics

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

Current Time: Fri Oct 10 07:38:21 PDT 2025

Total time taken to generate the page: 1.27763 seconds