<br><tt><font size=2>j3-bounces@j3-fortran.org wrote on 10/22/2009 04:56:01
PM:<br>
<br>
> > interface<br>
> > subroutine foo<br>
> > end subroutine<br>
> > end interface<br>
> > <br>
> > interface<br>
> > function func (i)<br>
> > import foo<br>
> > procedure(foo), pointer
:: func<br>
> > end function<br>
> > end interface<br>
> > <br>
> > associate (x => func(10))<br>
> > call x<br>
> <br>
> Interface says FUNC is a function, so<br>
> <br>
> call x<br>
> <br>
> looks like a syntax error at best.<br>
> <br>
> In general, a <selector> is either <expr> or <variable>.
A subroutine <br>
> name does not qualify as either of these.<br>
</font></tt>
<br>
<br><tt><font size=2>"func(10)" is an expression, is it not?
Then what is X?</font></tt>
<br>
<br>
<br><font size=2 face="sans-serif">Jim Xia<br>
<br>
XL Fortran Compiler Test<br>
IBM Toronto Lab at 8200 Warden Ave, Markham, On, L6G 1C7<br>
Phone (905) 413-3444 Tie-line 313-3444<br>
email: jimxia@ca.ibm.com<br>
D2/YF7/8200 /MKM<br>
<br>
</font><a href=http://www.ibm.com/software/awdtools/fortran/xlfortran><font size=2 face="sans-serif">http://www.ibm.com/software/awdtools/fortran/xlfortran</font></a>
<br>