comp.lang.ada
 help / color / mirror / Atom feed
From: "Grein, Christoph" <christoph.grein@eurocopter.com>
Subject: Re: Elaboration Schmelaboration...
Date: Thu, 27 Jun 2002 10:58:55 +0200 (MET DST)
Date: 2002-06-27T10:58:55+02:00	[thread overview]
Message-ID: <mailman.1025168582.8834.comp.lang.ada@ada.eu.org> (raw)

> Eh... What is elaboration? Can it be explained in C++ terms?

Not knowing C++, I'll use Ada terminology :-b

A program as a whole is executed. A program consists of declarations, statements 
and expressions. Execution of each of these parts has a special name:

Declarations are elaborated.
Statements are executed.
Expressions are evaluate.

Thus a declarative part is elaborated, the following is done (in the sequence 
defined in the RM):

Storage is allocated for the local variables, explicit or implicit initial 
values are assigned to them, local tasks are started, etc...

Since initial values are expressions, all kinds of other program units may be 
called. This is the infamous elaboration sequence problem when circularities are 
detected.



             reply	other threads:[~2002-06-27  8:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-27  8:58 Grein, Christoph [this message]
2002-06-28 12:57 ` Elaboration Schmelaboration Marin David Condic
2002-06-29  0:15   ` Ted Dennison
  -- strict thread matches above, loose matches on Subject: below --
2002-06-27  8:46 David Rasmussen
2002-06-27 13:34 ` Georg Bauhaus
replies disabled

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