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,FREEMAIL_FROM, INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,28b389d4503cb555 X-Google-Attributes: gid103376,public From: Mats Weber Subject: Re: generic package dilemma Date: 1999/11/22 Message-ID: <38398127.59E30D26@mail.com>#1/1 X-Deja-AN: 551703034 Content-Transfer-Encoding: 7bit References: <80u48b$ghr$1@bunyip.cc.uq.edu.au> <3832e27f_1@news1.prserv.net> <3832E75D.5B1BA719@mail.com> <383319e8_4@news1.prserv.net> <3833F615.5AD7166C@mail.com> <383442e1_1@news1.prserv.net> <383510EA.9DFEE8B6@mail.com> <383569db_2@news1.prserv.net> <3835CF7A.5604C6A3@mail.com> <81bt4v$7cr$1@nnrp1.deja.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@sunrise.ch X-Trace: news1.sunrise.ch 943292713 28538 195.141.231.162 (22 Nov 1999 17:45:13 GMT) Organization: sunrise communications ag Mime-Version: 1.0 NNTP-Posting-Date: 22 Nov 1999 17:45:13 GMT Newsgroups: comp.lang.ada Date: 1999-11-22T17:45:13+00:00 List-Id: Robert Dewar wrote: > > In article <3835CF7A.5604C6A3@mail.com>, > Mats Weber wrote: > > > Actually, I have used pragma Elaborate(_All) maybe three times > > since 1983. I have always let the compiler figure out an > > elaboration order, which turned out to be just fine in almost > > all cases with DEC Ada, Verdix and GNAT. I know this approach > > is not striclty portable, but I don't care. > > Well this is a bit like people not caring about seat belts in > a car till they have a crash. Well, the crash is not that bad, is it ? The worst thing you can get (provided that no tasks started at elaboration time) is Program_Error at some point before the main procedure is called by the environment task, is that right ? If it is, then I can live with it. And I am not saying that I advocate using my sloppy approach, I was just saying that reasonable compilers do it right on reasonable code. At the time I was writing the code, there was no GNAT to tell me where to put the pragmas, and I don't think it is reasonable to expect programmers to get the pragmas right without a tool helping them, especially in Ada 83 where there was just Elaborate and no Elaborate_All.