Re: double confusion
- From: Ian Bush <I.J.Bush@xxxxxxxxxxxxxxx>
- Date: Mon, 17 Jul 2006 11:50:22 +0000
Julian Bessenroth wrote:
michael schrieb:
Declare
double precision r
in the calling program.
TNX, it's working, but (It seems to be quite a while since I wrote
frotran77 the last time) this is not similar to moth other languages.
Why do I have to declare r wihin the calling program? I've already
declared r as double precision in the function definition. It's more
clear to me to declare c and a,b but r ... ?
What logic is behind that? It's unlike other languages, isn't is?
How is it different from C ?
If the subprogram and the main program were in different files and compiled
separately how could you ensure that the main program knows what return
type the function has ?
Ian
.
- Follow-Ups:
- Re: double confusion
- From: Julian Bessenroth
- Re: double confusion
- From: news.task.gda.pl
- Re: double confusion
- References:
- double confusion
- From: Julian Bessenroth
- Re: double confusion
- From: michael
- Re: double confusion
- From: Julian Bessenroth
- double confusion
- Prev by Date: Re: double confusion
- Next by Date: Re: writing output listing onto screen (or not) and onto file
- Previous by thread: Re: double confusion
- Next by thread: Re: double confusion
- Index(es):
Relevant Pages
|
|