(j3.2006) are selectors allowed to be procedures ?
Jim Xia
jimxia
Thu Oct 22 16:13:52 EDT 2009
I know the selectors in ASSOCIATE or SELECT TYPE are meant to be used as
data object. But where in the standard it says it can not be a procedure?
The example
interface
subroutine foo
end subroutine
end interface
interface
function func (i)
import foo
procedure(foo), pointer :: func
end function
end interface
associate (x => func(10))
call x
end associate
end
Should we explicitly disallow this?
Jim Xia
XL Fortran Compiler Test
IBM Toronto Lab at 8200 Warden Ave, Markham, On, L6G 1C7
Phone (905) 413-3444 Tie-line 313-3444
email: jimxia at ca.ibm.com
D2/YF7/8200 /MKM
http://www.ibm.com/software/awdtools/fortran/xlfortran
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://j3-fortran.org/pipermail/j3/attachments/20091022/1c64d103/attachment.htm>
More information about the J3
mailing list