(j3.2006) Interesting F2003-ism
Andy Vaught
andyv
Thu Feb 22 10:31:53 EST 2007
On Thu, 22 Feb 2007 malcolm at nag-j.co.jp wrote:
> $B$3$N%a!<%k$O(B
> "Andy Vaught" <andyv at firstinter.net>
> $B$5$s$N%a!<%k$KBP$9$kJV?.$G$9!#(B
>
> > It is the only way that one can
> > directly call a C subroutine with a variable argument list.
>
> No, one cannot call a C subroutine with a variable argument list,
> for the simple reason that it is prohibited. See page 400
>
> "A Fortran procedure interface is interoperable with a C function
> prototype if ... the prototype does not have variable arguments
> denoted by the ellipsis".
That's a dumb restriction. I predict that this will become yet another
one of those semi-standard extensions that everyone will support anyway,
even if they initially reject it. I will start the process by not
implementing the restriction on binding-labels in g95...
Andy
More information about the J3
mailing list