Re: Please help me understand my code
- From: dpb <none@xxxxxxx>
- Date: Fri, 29 Jun 2007 13:09:34 -0500
Richard Maine wrote:
www <www@xxxxxxxxxx> wrote:
I am also surprised to find out that Fortran variables are case insensitive! This makes me realize that tsoil(8) is TSOIL(8). TSOIL is
an array declared and used at the top.
Ah. I hadn't thought of that possible confusion. I was thinking about
much more subtle things.
Do note that although the language allows you to be inconsistent in
case, many people advise adopting a style of being consistent in at
least using the same case for all appearances of the same variable.
I understand that this isn't your code. Just advice for the future.
And for the OP a little background (but not trying to be more than superficial here) -- FORTRAN originally included only uppercase and the numbers plus special characters (+, -, etc.) so all code HAD to be written in uppercase only. Accepting lowercase became a common extension to the Standard and was added in later versions but to retain compatibility w/ existing code case-insensitivity was required to not break existing code.
--
.
- Follow-Ups:
- Re: Please help me understand my code
- From: Gary Scott
- Re: Please help me understand my code
- References:
- Please help me understand my code
- From: www
- Re: Please help me understand my code
- From: www
- Re: Please help me understand my code
- From: Richard Maine
- Please help me understand my code
- Prev by Date: Re: Please help me understand my code
- Next by Date: Re: C++ Bounds Checking
- Previous by thread: Re: Please help me understand my code
- Next by thread: Re: Please help me understand my code
- Index(es):