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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,845279c4faed63d0 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-07-28 04:32:41 PST Path: archiver1.google.com!newsfeed.google.com!postnews1.google.com!not-for-mail From: dewar@gnat.com (Robert Dewar) Newsgroups: comp.lang.ada Subject: Re: What is pragma preelaborated used for? Date: 28 Jul 2001 04:32:40 -0700 Organization: http://groups.google.com/ Message-ID: <5ee5b646.0107280332.5744581a@posting.google.com> References: <90bbca14.0107271856.324b779f@posting.google.com> NNTP-Posting-Host: 208.224.77.203 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 996319961 7906 127.0.0.1 (28 Jul 2001 11:32:41 GMT) X-Complaints-To: groups-support@google.com NNTP-Posting-Date: 28 Jul 2001 11:32:41 GMT Xref: archiver1.google.com comp.lang.ada:10663 Date: 2001-07-28T11:32:41+00:00 List-Id: wzm@venusic.com (wzm) wrote in message news:<90bbca14.0107271856.324b779f@posting.google.com>... > Though I have read ARM - 10.2.1 Elaboration Control,I don't understand > pragma preelabrated and pragma pure well,can some bosy give me a > detailed lesson? What you need is a good Ada text book, trying to learn stuff like this from the ARM is very difficult for most people. Everything is there in the ARM in terms of what the semantics are, but for understanding motivation and what things are used for, you are expected to understand that in advance. For example, when you read about an IF statement, you are expected to be familiar with the general idea of conditional execution. For a less familiar area like elaboration, it's really hard to expect to be able to understand motivations from the ARM, and documents like tutorials, text books, and the rationale are far better resources. The trouble with asking general questions in a newsgroup is a) no one can spend the time and care that went into writing a text book chapter on the subject. b) you are likely to get answers from people who don't really know what they are talking about, the blind leading the blind down the wrong alley is an all-to-frequent occurrence in newsgroups :-) I would especially expect b) to be true for the question you asked, since Preelaborate/Pure are tricky features that serve at least three quite different functions in the language.