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 #26659] Thu, 20 September 2001 00:19 Go to previous message
R.Bauer is currently offline  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
[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: Wed Oct 08 19:10:15 PDT 2025

Total time taken to generate the page: 0.00447 seconds