comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@gnat.com (Robert Dewar)
Subject: Re: What is pragma preelaborated used for?
Date: 28 Jul 2001 04:32:40 -0700
Date: 2001-07-28T11:32:41+00:00	[thread overview]
Message-ID: <5ee5b646.0107280332.5744581a@posting.google.com> (raw)
In-Reply-To: 90bbca14.0107271856.324b779f@posting.google.com

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.



      reply	other threads:[~2001-07-28 11:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-28  2:56 What is pragma preelaborated used for? wzm
2001-07-28 11:32 ` Robert Dewar [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox