MR C 7 9
  Home FAQ Contact Sign in
 
Advanced search
MATCHING GROUPS



more...
POPULAR GROUPS

more...

found 1175 articles for 0.081 sec
Re: MR&C 7.9     

Group: comp.lang.fortran · Group Profile · Search for MR C 7 9 in comp.lang.fortran
Author: glen herrmannsfeldt
Date: Mar 23, 2007 00:00

Lane Straatman wrote: (snip) And it was because of "a" being undefined on the second call that I got the runtime. I think the snippet from MR&C makes for a good reference to talk about what does and doesn't get saved, and what that means for a variable in a procedure. I was going ...
Show full article (0.77Kb)
Re: MR&C 7.9     

Group: comp.lang.fortran · Group Profile · Search for MR C 7 9 in comp.lang.fortran
Author: Lane Straatman
Date: Mar 16, 2007 13:54

...... I tried to find relevant material in the standard (04-007 pg 87, 91), but found nothing. -- Try MR&C, Section 3.3. That helps. It's funny how you just glide over stuff in the beginning of a text, and it becomes important later. As the source snippet stands in 7.3, it will get a runtime error on the second call to it when ...
Show full article (0.93Kb)
Re: MR&C 7.9     

Group: comp.lang.fortran · Group Profile · Search for MR C 7 9 in comp.lang.fortran
Author: Michael Metcalf
Date: Mar 16, 2007 04:50

"Lane Straatman" <invalid@invalid.net> wrote in message news:xICdnTLcJv8uJWTYnZ2dnUVZ_sKunZ2d@comcast.com... I tried to find relevant material in the standard (04-007 pg 87, 91), but found nothing. -- Try MR&C, Section 3.3. Regards, Mike Metcalf
Show full article (0.26Kb)
Re: MR&C 7.9     

Group: comp.lang.fortran · Group Profile · Search for MR C 7 9 in comp.lang.fortran
Author: Brooks Moses
Date: Mar 16, 2007 18:33

Richard Maine wrote: Lane Straatman <invalid@invalid.net> wrote: The gocha is when it's automatically saved and you don't know, and your background is more C than Fortran. Explicitly saving is documentation. Actually, no that's not a gotcha... well, not in terms of writing correct code anyway. It can be a gotcha in terms of understanding why code is valid. I agree that the...
Show full article (1.30Kb)
Re: MR&C 7.9     

Group: comp.lang.fortran · Group Profile · Search for MR C 7 9 in comp.lang.fortran
Author: Lane Straatman
Date: Mar 16, 2007 18:22

... in message news:1hv2y2b.vitfhf12sku29N%%nospam@see.signature... Lane Straatman <invalid@invalid.net> wrote: The gocha is when it's automatically saved and you don't know, and your background is more C than Fortran. Explicitly saving is documentation. Actually, no that's not a gotcha... well, not in terms of writing correct code anyway. It can be a gotcha in terms of ...
Show full article (1.55Kb)
Re: MR&C 7.9     

Group: comp.lang.fortran · Group Profile · Search for MR C 7 9 in comp.lang.fortran
Author: nospam
Date: Mar 16, 2007 18:09

Lane Straatman <invalid@invalid.net> wrote: The gocha is when it's automatically saved and you don't know, and your background is more C than Fortran. Explicitly saving is documentation. Actually, no that's not a gotcha... well, not in terms of writing correct code anyway. It can be a gotcha in terms of understanding why code is valid. I agree that the explicit save is good ...
Show full article (1.32Kb)
Re: MR&C 7.9     

Group: comp.lang.fortran · Group Profile · Search for MR C 7 9 in comp.lang.fortran
Author: Lane Straatman
Date: Mar 16, 2007 17:12

..."explicitly save" I simply meant writing that line as integer, save :: counter = 0 even though the "save" doesn't actually do anything. It's pretty much equivalent to your "automatically saved" comment, but shorter. :) The gocha is when it's automatically saved and you don't know, and your background is more C than Fortran. Explicitly saving is documentation. -- LS
Show full article (0.76Kb)
Re: MR&C 7.9     

Group: comp.lang.fortran · Group Profile · Search for MR C 7 9 in comp.lang.fortran
Author: Lane Straatman
Date: Mar 16, 2007 15:30

... it wouldn't be a brand new counter every time. (?) The counter _is_ saved, just invisibly. You've got it declared like so: integer :: counter = 0 As section 7.5.1 points out, a variable with an initialization in the type declaration statement such as this one automatically gets the "save" attribute, regardless of whether or not it's explicitly specified. ...
Show full article (1.99Kb)
Re: MR&C 7.9     

Group: comp.lang.fortran · Group Profile · Search for MR C 7 9 in comp.lang.fortran
Author: Brooks Moses
Date: Mar 16, 2007 15:06

... wrong that it wouldn't be a brand new counter every time. (?) The counter _is_ saved, just invisibly. You've got it declared like so: integer :: counter = 0 As section 7.5.1 points out, a variable with an initialization in the type declaration statement such as this one automatically gets the "save" attribute, regardless of whether or not it's explicitly specified. ...
Show full article (0.95Kb)
Re: MR&C 7.9     

Group: comp.lang.fortran · Group Profile · Search for MR C 7 9 in comp.lang.fortran
Author: Ken Fairfield
Date: Mar 14, 2007 18:40

...: "glen herrmannsfeldt" <gah@ugcs.caltech.edu> wrote in message news:5vWdnb0HVeuMHmXYnZ2dneKdnZydnZ2d@comcast.com... Lane Straatman wrote: (snip) Fortran has an assignment statement, unlike C where assignment is an operator and any expression is legal as a statement. Thanks. program fixed1 real :: a integer :: i do i = 1, 5...
Show full article (1.27Kb)
1 · 2 · 3 · 4 · 5 · 6 · 7 · 8 · 9 · next