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

Home » Public Forums » archive » Re: Change Color Table
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: Change Color Table [message #14891] Fri, 02 April 1999 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Stein Vidar Hagfors Haugan (steinhh@ulrik.uio.no) writes:

>> You can either download an earlier version of XColors from
>> the "old program" archive on my web page, or replace the
>> offending line of code with something like this:
>>
>> s = Size(info.notifyobj)
>> nelements = s[s[0]+2]
>
> But why not just use n_elements(info.notifyobj) instead?
>
> I've never understood why anybody would want to use the
> /N_Elements keyword in Size() given the availability of
> the built-in function n_elements(). Portability plus
> backwards compatibility, what more could you want..?

This is just one of the tricks you learn when you
get paid by the hour to write programs. Not only is
this TWO lines instead of one, its a lot harder to
understand. Very rare to get two positive benefits
with the same piece of code. :-)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Z-buffer font quality
Next Topic: color table trouble

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

Current Time: Wed Oct 08 19:24:11 PDT 2025

Total time taken to generate the page: 0.00463 seconds