Re: double confusion




Ian Bush schrieb:

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 ?

But these declaration are located onlz _once_ at the begining of the
file (before the main routine starts). Fortran requires its
declarations "within the main routine" and within every
subroutine/function where i'm going to use the this function, and what
confuses me somewhat more, that it's just required for double
precision, but not for integer or real ...

regards

Julian

.



Relevant Pages

  • Re: which compiler is right?
    ... >> neither a primitive subprogram nor is overriding. ... I'm not sure how this is pertinent, since the routine causing the ... a declaration can override another homograph if the declaration ... in a nested inner package, it cannot override a routine declared ...
    (comp.lang.ada)
  • Re: [Revisited] How to get around "access type must not be outside generic unit"
    ... And what Janus/Ada would do if it meets pragma Convention ... a routine. ... enough to add a declaration of the subprogram to the specification, ... visible part of the spec, ...
    (comp.lang.ada)
  • Re: UserForm Data Validation. I tried and tried but cant figure it out.
    ... >> routine which contains the declaration, there is tremendous scope for ... >> confusion since the default instance will still work from any other ... > of the default one there is, effectively, a hidden declaration. ...
    (microsoft.public.word.vba.general)
  • Re: Intermittent Error 12 - Variable Not Found
    ... routine in which they are defined. ... Variable declared PRIVATE work more like what you described. ... A private variable's scope is that of the ... overridden by another declaration further down the call tree. ...
    (microsoft.public.fox.programmer.exchange)
  • Re: 2 Ada 95/05 language design questions
    ... tagged type to be declared in the same or child packages than to have ... In Ada 95 it seems silly to have to with in the package where the ... classwide subprogram is declared to use it, ... You can consider an act of inheritance as a declaration of a *new* ...
    (comp.lang.ada)