From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: * X-Spam-Status: No, score=1.1 required=5.0 tests=BAYES_40,INVALID_DATE, MSGID_SHORT autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,48966bd3ed2f5135,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1993-03-25 15:24:27 PST Path: sparky!uunet!mdisea!mdivax1!van-bc!mdavcr!russell From: russell@mdavcr.mda.ca (Norman Russell) Newsgroups: comp.lang.ada Subject: Help: Main program parameters Keywords: ADA, parameters Message-ID: <4110@mdavcr.mda.ca> Date: 25 Mar 93 23:24:27 GMT Distribution: comp.lang.ada Organization: MacDonald Dettwiler, 13800 Commerce Parkway, Richmond, BC, Canada V6V 2J3 Date: 1993-03-25T23:24:27+00:00 List-Id: Hi there, Is it possible to have a main ada procedure (program) with parameters? For example, my main program is called: Read_Text and I would like to call that main program (from the command line) with the name of the file I want to read. I thought I would be able to have my main procedure has follows: procedure READ_TEXT (File_Name : in STRING := "") is begin . . . end READ_TEXT; This compiles nicely, but when I go to link it I get the following error message: %ACS-E-CL_MAIUNISIG, Main unit READ_TEXT has parameters or a result type that are not supported for a main program Does any body know how I can make this so I can just type from the command line: $ READ_TEXT My_Text_File.TXT and it will understand I want to read the file called "My_Text_File.TXT" In case it helps I'm using the VAX ADA Compiler. Thanks in advance! Norm -- Norman Russell | Voice: (604)231-3161 MacDonald Dettwiler and Associates | Fax: (604)278-6427 CAATS Development Facility | 13800 Commerce Parkway | Richmond, B.C. CANADA | Internet: russell@mda.ca V6V 2J3 | UUCP: ...!uunet!van-bc!mdavcr!russell