Re: [Rd] Calling FORTRAN function from R issue?

From: Berend Hasselman <bhh_at_xs4all.nl>
Date: Tue, 06 Mar 2012 16:00:45 +0100

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



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Tue 06 Mar 2012 - 16:11:29 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 06 Mar 2012 - 18:00:25 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive