From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,2952d0a9df61022d X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1995-03-06 22:48:54 PST Newsgroups: comp.sys.dec Path: bga.com!news.sprintlink.net!howland.reston.ans.net!usc!news.isi.edu!gremlin!charming!mcohen From: mcohen@charming.nrtc.northrop.com (Martin Cohen) Subject: Re: FORTRAN arg lists on AXP Message-ID: Sender: news@gremlin.nrtc.northrop.com (Usenet News Manager) Organization: Northrop Grumman Automation Sciences Laboratory, Pico Rivera, CA References: <3j2q8v$5hc@arc.electriciti.com> Date: Mon, 6 Mar 1995 23:57:25 GMT In article <3j2q8v$5hc@arc.electriciti.com> jjo@triton.com (Jay Olson) writes: >I am converting some VAX MACRO code to FORTRAN as part of an AXP conversion >effort. Some of the entry points in this code are supposed to accept variable length >argument lists. Is there any way in DEC FORTRAN for OpenVMS/AXP (or any other >language) to determine the number of arguments a subroutine has been passed? > >Note that this is the case where the number of commas may vary (e.g CALL XXX(A1,A2) >and CALL XXX(A1) are both supposed to be allowed). I can use %LOC to determine if an >argument has been left out, as in CALL XXX(A1,). > > - Jay Olson > Triton Software Group Ltd. I am somewhat partial to Fortran myself, but it seems to me that macro code could be more easily converted to C, since C is, anomg other things, a high-level assembly language. One of the things C supports is varying number of arguments (see varargs). Fortran does not support this. Good luck - I hope the choice of Fortran was technical, not managerial! -- Marty Cohen (mcohen@nrtc.northrop.com) - Not the guy in Philly This is my opinion and is probably not Northrop Grumman's! Use this material of your own free will