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

Home » Public Forums » archive » assignment inside boolean expression
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
assignment inside boolean expression [message #20613] Mon, 10 July 2000 00:00 Go to previous message
Patrick Broos is currently offline  Patrick Broos
Messages: 27
Registered: December 1996
Junior Member
I was wondering if it's common knowlege that one can put an IDL
assignment inside
a boolean expression (like in the C language). For example

if (v = 0) then ... assigns v and does not execute the "then"
statement, while
if (v = 1) then ... assigns v and does execute the then.

Just as in C I find this leads to really nasty bugs.


--
============================================================ ========
Patrick S. Broos, Systems Analyst/Programmer patb@astro.psu.edu

Department of Astronomy and Astrophysics My office 814-863-7947
Penn State University
525 Davey Lab FAX 814-863-8686
University Park, PA 16802-6305
http://www.astro.psu.edu Group office 863-9550
============================================================ ========
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: optimization question: a faster way to PIXMAP?
Next Topic: Re: Top 10 IDL Requests

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

Current Time: Wed Oct 08 18:24:04 PDT 2025

Total time taken to generate the page: 0.00239 seconds