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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,5ea968aeb8c7f10d X-Google-Attributes: gid103376,public From: dbrown@vigra.com (David Brown) Subject: Re: Do I Really Need A Supervisor? Date: 1997/03/13 Message-ID: #1/1 X-Deja-AN: 225300988 Sender: dbrown@ted.vigra.com References: <3327438E.942@earthlink.net> Organization: VisiCom Laboratories, Inc. Newsgroups: comp.lang.ada Date: 1997-03-13T00:00:00+00:00 List-Id: bobduff@world.std.com (Robert A Duff) writes: > I meant exactly what I wrote: An Ada 95 program does not need a main > procedure (or main function, for that matter). That is, an Ada 95 > program can consist of a bunch of library packages, without any main > subprogram. This is different from Ada 83, which required a main > subprogram (called a main program in Ada 83, despite the fact that it's > not a program). > > Note "optionally" and "if specified" in 10.2(7) -- the user is not > required to have a main subprogram. Note "if the partition has one" in > 10.2(21) and "if there is no main subprogram" in 10.2(23). See also > 10.2(34), which explains the reason. See also AARM-10.2(34.e), which > says that this change is a language extension. I guess then a GNAT question is in order. How would you go about producing a partition with GNAT that doesn't have a main subprogram. If I just give gnatbind packages without a main subprogram, it complains that there is no main subprogram. If I specify -n to indicate that there is no main subprogram, then it doesn't generate a function called main. I could use it this way, but I would have to write my own main that just called adainit. I guess I'm wondering how 10.2(23) get's addressed. I suppose that requiring the user to write a C routine to call adainit could be called "implementation defined" :-). Dave Brown