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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.42.187.198 with SMTP id cx6mr13125702icb.28.1420278356716; Sat, 03 Jan 2015 01:45:56 -0800 (PST) X-Received: by 10.140.102.211 with SMTP id w77mr123qge.28.1420278356571; Sat, 03 Jan 2015 01:45:56 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!news.glorb.com!h15no20615950igd.0!news-out.google.com!n9ni76qai.0!nntp.google.com!dc16no3788721qab.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 3 Jan 2015 01:45:56 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=82.225.39.24; posting-account=ku4DIwoAAACRt0A2H-srh5aOk_YodLAH NNTP-Posting-Host: 82.225.39.24 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <2f5e2392-68b0-4fe0-a224-57a060a6fd56@googlegroups.com> Subject: Re: Elaboration Question From: =?ISO-8859-1?Q?Jean_Fran=E7ois_Martinez?= Injection-Date: Sat, 03 Jan 2015 09:45:56 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:24326 Date: 2015-01-03T01:45:56-08:00 List-Id: 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=20 > understand. My understanding is so, that if you have for instance a=20 > variable in the package body, say : >=20 > A : Integer :=3D 0; >=20 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 pr= ogram is loaded by the OS the corresponding memory will get the adequate va= lue.=20 The problems arise when, with My_Function and My_Var belong to another pack= age A: Integer:=3D My_Function; or when A: Integer:=3DMy_Var; with My_Var not being static but being the p= roduct of some calculation. =20 Jean-Fran=E7ois Martinez