Re: Variable undefined after while-cycle? [message #26659] |
Thu, 20 September 2001 00:19  |
R.Bauer
Messages: 1424 Registered: November 1998
|
Senior Member |
|
|
Craig Markwardt wrote:
>
> 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. :-)
Dear Craig,
a lot of my old code is using () too. But [] gets some code
better readable. So everytime I add a new keyword or something else to
an old script I correct the () into [].
In the past I got some problems with funtions named as arrays both
are with (). This problem is solved by using [] for arrays.
For me this is a good idea.
How did you switch of this option:
COMPILE_OPT STRICTARR
I have no idea.
regards
Reimar
>
> 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
> ------------------------------------------------------------ --------------
--
Reimar Bauer
Institut fuer Stratosphaerische Chemie (ICG-1)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
http://www.fz-juelich.de/icg/icg1/
============================================================ ======
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg1/idl_icglib/idl_lib_intro.h tml
http://www.fz-juelich.de/zb/text/publikation/juel3786.html
============================================================ ======
read something about linux / windows
http://www.suse.de/de/news/hotnews/MS.html
|
|
|