From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,2952d0a9df61022d,start X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1995-03-03 11:24:23 PST Path: bga.com!news.sprintlink.net!hookup!news.mathworks.com!newshost.marcam.com!zip.eecs.umich.edu!caen!crl.dec.com!crl.dec.com!jac.zko.dec.com!quark.enet.dec.com!lionel From: lionel@quark.enet.dec.com (Steve Lionel) Newsgroups: comp.sys.dec Subject: Re: FORTRAN arg lists on AXP Date: 3 Mar 1995 14:49:29 GMT Organization: Digital Equipment Corporation, Nashua NH Distribution: world Message-ID: <3j7a9p$d57@jac.zko.dec.com> References: <3j2q8v$5hc@arc.electriciti.com> Reply-To: lionel@quark.enet.dec.com (Steve Lionel) NNTP-Posting-Host: quark.zko.dec.com X-Newsreader: mxrn 6.18-30 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? DEC Fortran has the IARGCOUNT intrinsic for this purpose. Please be aware that the Fortran language does not provide for omitting arguments when calling Fortran routines and that this is not really supported. It works most of the time, as long as the argument you omit is not CHARACTER or used in an adjustable array bounds expression. Be sure to declare VOLATILE any argument which may be omitted. For further details, see the DEC Fortran release notes. -- Steve Lionel Mail: lionel@quark.enet.dec.com DEC Fortran Development WWW: http://www.digital.com/info/slionel.html Digital Equipment Corporation CompuServe: 75263,3001 110 Spit Brook Road, ZKO2-3/N30 Nashua, NH 03062-2698 "Free advice is worth every cent" For a summary of Digital's Internet services, send mail to info@digital.com