Re: How to detect NULL input?
- From: glen herrmannsfeldt <gah@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 31 Jan 2006 17:33:56 +0000 (UTC)
Richard E Maine <nospam@xxxxxxxxxxxxx> wrote:
> Rich Townsend <rhdt@xxxxxxxxxxxxxxxxxxx> wrote:
>
>> Fair enough. BTW, was result primarily introduced to support recursive
> functions?
> That's my impression. It was introduced in f90, before I was on J3, and
> I don't recall ever explicitly asking, but I would assign a reasonably
> high degree of confidence tothat guess.
In the early days of Fortran, when all variables were static
including the function return value, I could see the problem.
Is there a requirement that the function return variable be
static in versions allowing recursion?
It is more consistent with other languages not to need to assign
to a variable named after the function.
Also, there is a tradition (in the case of ENTRY) that all function
return variables are EQUIVALENCEd. Does it still do that, even
in the case of recursive functions not using a function return variable?
-- glen
.
- Follow-Ups:
- Re: How to detect NULL input?
- From: Richard E Maine
- Re: How to detect NULL input?
- From: *** Hendrickson
- Re: How to detect NULL input?
- References:
- How to detect NULL input?
- From: jane . sync
- Re: How to detect NULL input?
- From: Rich Townsend
- Re: How to detect NULL input?
- From: jane . sync
- Re: How to detect NULL input?
- From: robin
- Re: How to detect NULL input?
- From: Rich Townsend
- Re: How to detect NULL input?
- From: Richard Maine
- Re: How to detect NULL input?
- From: Rich Townsend
- Re: How to detect NULL input?
- From: Richard E Maine
- How to detect NULL input?
- Prev by Date: Re: save attribute for module variables
- Next by Date: Re: How to detect NULL input?
- Previous by thread: Re: How to detect NULL input?
- Next by thread: Re: How to detect NULL input?
- Index(es):