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=-0.8 required=5.0 tests=BAYES_00,INVALID_DATE, MSGID_SHORT autolearn=no autolearn_force=no version=3.4.4 Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!spool.mu.edu!snorkelwacker.mit.edu!bloom-beacon!eru!hagbard!sunic!enea!sommar From: sommar@enea.se (Erland Sommarskog) Newsgroups: comp.lang.ada Subject: Command line arguments Message-ID: <3275@enea.se> Date: 29 Apr 91 22:16:09 GMT Article-I.D.: enea.3275 References: <91113.165139TAINT021@ysub.ysu.edu> <1991Apr25.143711.11311@ecst.csuchico.edu> Organization: Enea Data AB, Sweden List-Id: Also sprach Ralph Reid III (rreid@ecst.csuchico.edu): >I have played around with command line parameters in Ada a little, >and there does not seem to be a standard technique for reading them. >Several pieces of source code seem to be floating around, and two >examples came with the Meridian Adavantage compiler I have. Perhaps >a standard should be considered for Ada9x? Undoubtedly it would be pleasant if all Ada compilers on Unix were interchangeable on argv/argc, but that something like a POSIX binding not Ada 9X. Since you retrieve the arguments differently in different OSs, reading the command line is something which by definition is not portable(*) so it can't be in the language. Remember that the command-line interface itself is OS dependent. (*) Yes, I know that argc/argv is commonly available with C implementations. But if you're going to get the command-line interface right in, say, VMS, you better use the CLI$ routines. -- Erland Sommarskog - ENEA Data, Stockholm - sommar@enea.se Le fils du maire est en Normandie avec beaucoup de medecins.