X3J3/96-081 Date: April 29, 1996 To: X3J3 From: Kurt W. Hirchert Subject: JOR Item No. 115 115 Mixed function/subroutine generics <KEYWORDS> GENERIC <STATUS> Registered <TARGET> <SUBGROUP> <VERSION> 1 <REQUIREMENT> Allow generic names (but not operators or assignment) to apply to functions and subroutines at the same time, with function vs. subroutine being an added way to distinguish two specific procecures. Review whether intrinsics such as MVBITS, PACK, and UNPACK should have both function and subroutine interfaces. <JUSTIFICATION> Subroutine interfaces can be more efficient if only part of what could be modified will actually be modified in a given call. Functions are more suited for allowing operations to be composed. Allowing both interfaces to be provided avoids the necessity of prejudging which issue is going to be most important in the programs of people using the interface. <ESTIMATED IMPACT> Impact on both the document and existing processors should be localized. (Some existing processors already have generic intrinsics that mix functions and subroutines.) <SUBMITTED BY> Kurt W. Hirchert, hirchert@ncsa.uiuc.edu <HISTORY> <EVENT> 29 April 96: submitted </HISTORY> </FORTREQ> -- Kurt W. Hirchert hirchert@ncsa.uiuc.edu National Center for Supercomputing Applications