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

Home » Public Forums » archive » conditional operator
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
conditional operator [message #63587] Fri, 14 November 2008 02:14
greg.addr is currently offline  greg.addr
Messages: 160
Registered: May 2007
Senior Member
It seems odd to me that you can't apply the conditional operator "?"
to an array:

threshold = (image gt z) ? 0b:255b

It's not hard to find another way, but this would be more elegant.

cheers,
Greg
[Message index]
 
Read Message
Previous Topic: Is there an easy way to write and read (large) structure?
Next Topic: Re: Is there an easy way to write and read (large) structure?

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

Current Time: Fri Oct 10 10:16:06 PDT 2025

Total time taken to generate the page: 1.03723 seconds