[Rd] Calling FORTRAN function from R issue?

Berend Hasselman bhh at xs4all.nl
Tue Mar 6 16:00:45 CET 2012


On 06-03-2012, at 15:46, Berend Hasselman wrote:

> 
>> 
>>> Thus, perhaps strangely, if there is only a
>>> 	external double complex zdotc
>>> declaration in your subroutine, the compiler doesn't know that a call
>> 
>> The only 'strangely' thing is that is accepted: AFAICS is it not valid according to the link above.
>> 
> 
> Agree. The fortran 77 standard doesn't allow that syntax and I'm really surprised that no error is flagged.
> 

Got it.
See http://www.fortran.com/F77_std/rjcnf0001-sh-3.html#sh-3.1.6

Compiler ignores the blanks and

	external double complex zdotc

becomes

	external doublecomplexzdotc	

And that is legal.

And how long have I been using Fortran? I won't tell.

Berend



More information about the R-devel mailing list