Keyword arguments in intrinsics
  Home FAQ Contact Sign in
comp.lang.fortran only
 
Advanced search
POPULAR GROUPS

more...

comp.lang.fortran Profile…
 Up
Keyword arguments in intrinsics         


Author: James Van Buskirk
Date: May 16, 2008 01:15

I found some places where the gfortran manual had keyword arguments
inconsistent with standard. In all cases the actual compiler agreed
with the standard rather than gfortran documentation:

C:\gfortran\james\intrinsics\func1>type names.f90
program names
implicit none
integer i
real x
complex z
logical L
Show full article (1.13Kb)
3 Comments
Re: Keyword arguments in intrinsics         


Author: Tom Micevski
Date: May 16, 2008 20:53

James Van Buskirk wrote:
> I found some places where the gfortran manual had keyword arguments
> inconsistent with standard. In all cases the actual compiler agreed
> with the standard rather than gfortran documentation:

this message reminded me that i noticed this the other day for the
move_alloc intrinsic.

the gfortran manual[1] says:
MOVE_ALLOC(SRC, DEST)
while the f2003 (draft) standard uses keywords "from" and "to":
MOVE ALLOC (FROM, TO) ==> section 13.7.82, page 337

[1] http://gcc.gnu.org/onlinedocs/gfortran/MOVE_005fALLOC.html
no comments
Re: Keyword arguments in intrinsics         


Author: James Van Buskirk
Date: May 16, 2008 22:07

"Tom Micevski" wrote in message
news:0389cc37$0$27319$c3e8da3@news.astraweb.com...
> James Van Buskirk wrote:
>> I found some places where the gfortran manual had keyword arguments
>> inconsistent with standard. In all cases the actual compiler agreed
>> with the standard rather than gfortran documentation:
> this message reminded me that i noticed this the other day for the
> move_alloc intrinsic.
> the gfortran manual[1] says:
> MOVE_ALLOC(SRC, DEST)
> while the f2003 (draft) standard uses keywords "from" and "to":
> MOVE ALLOC (FROM, TO) ==> section 13.7.82, page 337

Yeah, here's a sample dialog:

C:\gfortran\test\acosh>notepad move.f90

C:\gfortran\test\acosh>type move.f90
program move
write(*,*) MOVE_ALLOC()
end program move
Show full article (4.01Kb)
no comments
Re: Keyword arguments in intrinsics         


Author: Steven G. Kargl
Date: May 16, 2008 22:26

In article comcast.com>,
"James Van Buskirk" comcast.net> writes:
> "Tom Micevski" wrote in message
> news:0389cc37$0$27319$c3e8da3@news.astraweb.com...
>
>> James Van Buskirk wrote:
>>> I found some places where the gfortran manual had keyword arguments
>>> inconsistent with standard. In all cases the actual compiler agreed
>>> with the standard rather than gfortran documentation:
>
>> this message reminded me that i noticed this the other day for the
>> move_alloc intrinsic.
>
>> the gfortran manual[1] says:
>> MOVE_ALLOC(SRC, DEST)
>> while the f2003 (draft) standard uses keywords "from" and "to":
>> MOVE ALLOC (FROM, TO) ==> section 13.7.82, page 337
>
> ...
Show full article (2.60Kb)
no comments

RELATED THREADS
SubjectArticles qty Group
Re: Creationist Argument: Argument by Undeclared Variabletalk.origins ·