(j3.2006) Questions on interp F95/030 in (FORTRAN 2003 TC1 WG5 N1636)

Jim Xia jimxia
Wed Nov 28 13:34:27 EST 2007


j3-bounces at j3-fortran.org wrote on 11/27/2007 01:54:26 PM:

> Hi Jim,
> 
> A user can supply his own specific interfaces for an intrinsic generic. 
> I think the paragraph just says that the compiler does not have to look 
> ahead through the rest of the declarations to be sure that the user has 
> not supplied a matching specific, and thus what appears to be a 
> reference to an intrinsic function really is that.


This might well be the reason why this paragraph was written.  But still I 
see a great fallacy here: if a compiler knows that a non-intrinsic 
function will never be allowed in an initialization expression, then why 
even bother looking ahead?  The way this paragraph was written and 
inserted in the standard is odd.  It gives a reader an illusion that user 
defined functions can be used perfectly in initialization expressions.


Cheers,

Jim Xia

XL Fortran Compiler Testing
IBM Toronto Lab at 8200 Warden Ave.
Phone (905) 413-3444  Tie-line 313-3444
D2/NAH/8200 /MKM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://j3-fortran.org/pipermail/j3/attachments/20071128/639e030d/attachment.html 



More information about the J3 mailing list