From: "Jean François Martinez" <darkquark99@gmail.com>
Subject: Re: Elaboration Question
Date: Sat, 3 Jan 2015 01:45:56 -0800 (PST)
Date: 2015-01-03T01:45:56-08:00 [thread overview]
Message-ID: <2f5e2392-68b0-4fe0-a224-57a060a6fd56@googlegroups.com> (raw)
In-Reply-To: <Xeopw.842131$No4.595859@fx19.iad>
On Friday, January 2, 2015 4:27:52 AM UTC+1, Hubert wrote:
> For a newcomer to Ada, elaboration is one of the toughest things to
> understand. My understanding is so, that if you have for instance a
> variable in the package body, say :
>
> A : Integer := 0;
>
In your example this is no problem since at compile time the compiler will put a zero in the corresponding emplacement in the generated file. When program is loaded by the OS the corresponding memory will get the adequate value.
The problems arise when, with My_Function and My_Var belong to another package
A: Integer:= My_Function;
or when A: Integer:=My_Var; with My_Var not being static but being the product of some calculation.
Jean-François Martinez
next prev parent reply other threads:[~2015-01-03 9:45 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-02 3:27 Elaboration Question Hubert
2015-01-02 7:56 ` Simon Wright
2015-01-02 22:16 ` Randy Brukardt
2015-01-02 14:49 ` Brad Moore
2015-01-02 11:08 ` Mark Lorenzen
2015-01-02 13:35 ` David Botton
2015-01-02 15:11 ` sbelmont700
2015-01-02 21:57 ` Niklas Holsti
2015-01-06 2:33 ` Randy Brukardt
2015-01-06 8:17 ` Niklas Holsti
2015-01-06 20:06 ` Randy Brukardt
2015-01-03 9:45 ` Jean François Martinez [this message]
2015-01-03 9:50 ` Hubert
2015-01-03 18:43 ` Jean François Martinez
2015-01-04 1:57 ` Hubert
2015-01-04 12:05 ` Simon Wright
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox