At 07:39 on 21 February, Richard Maine wrote:
> For the same reason, it would be illegal to declare func external. It
> is not external. If you declare it to be so, then that would mean
> that the module procedure was not the one intended, but that instead
> the references were to some external subroutien named func. Since
> there presumably isn't such an external subroutine, this would likely
> fail to link, giving an undefined external error (though it should
> compile ok).
Indeed -- that is exactly what happens.
The problem goes away if I re-order the code so that subroutine
C appears before subroutine B in the module.
--
Anthony Stone http://www-stone.ch.cam.ac.uk/
University Chemical Laboratory, Email: [log in to unmask]
Lensfield Road, Phone: +44 1223 336375
Cambridge CB2 1EW Fax: +44 1223 336362
|