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

Home » Public Forums » archive » Re: Variable undefined after while-cycle?
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: Variable undefined after while-cycle? [message #26667 is a reply to message #26659] Wed, 19 September 2001 18:11 Go to previous messageGo to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
David Fanning <david@dfanning.com> writes:


> Reimar Bauer (r.bauer@fz-juelich.de) writes:
>
>> you should use () only for functions
>> [] should be used for arrays.
>
> Please, let's not get started on proper programming
> technique.

And, as far as I'm concerned, round parentheses are accepted by IDL by
default for array indexing, so they must be correct :-) (as are the
square brackets too of course).

This same wisdom can be found in the ancient text of _EXTRAmasutra,
whose IDL-ku is almost a lost form of expression today. The guru says
it in an obscure way, but the meaning is clear:

index, NOT careless
to, slice AND dice (arrays), a
round (blade) = sharper

I still do not yet use a "square blade" for my array indexing, it is
too dull. :-)

Craig

[ For those uninitiated in IDL-ku, it reads like a 5-7-5 syllable
haiku, but is a compileable IDL program. The equals sign "=" can
either be silent or the single syllable "is". ]

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Way to determine big/little endian?
Next Topic: Re: Arrow command/ velovect plot resolution

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

Current Time: Sat Oct 11 11:37:33 PDT 2025

Total time taken to generate the page: 0.01817 seconds