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=unavailable autolearn_force=no version=3.4.4 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!peer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!fx25.iad.POSTED!not-for-mail From: Hubert User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Elaboration Question References: <2f5e2392-68b0-4fe0-a224-57a060a6fd56@googlegroups.com> In-Reply-To: <2f5e2392-68b0-4fe0-a224-57a060a6fd56@googlegroups.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Antivirus: avast! (VPS 150102-1, 01/02/2015), Outbound message X-Antivirus-Status: Clean Message-ID: X-Complaints-To: abuse@newsdemon.com NNTP-Posting-Date: Sat, 03 Jan 2015 09:50:32 UTC Organization: http://www.NewsDemon.com Date: Sat, 03 Jan 2015 01:50:31 -0800 X-Received-Bytes: 2032 X-Received-Body-CRC: 1198869562 Xref: news.eternal-september.org comp.lang.ada:24327 Date: 2015-01-03T01:50:31-08:00 List-Id: > > 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 > Ok, makes sense. Thanks also to all the other posters, it's not an easy topic it seems. Personally I prefer the initialization call to a library simply because it gives the programmer the liberty of determining the place in the sequence of initializations of a potential longer list of libraries which may interfere with each other's initialization if the sequence is not under program control. I am forced to use a graphics library currently which calls your program as a DLL and controls your program and boy is that a pain in the butt. --- This email has been checked for viruses by Avast antivirus software. http://www.avast.com