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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,4fa6947d273daad1 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!h18g2000yqo.googlegroups.com!not-for-mail From: Gautier write-only Newsgroups: comp.lang.ada Subject: Re: newbie ada question Date: Tue, 23 Mar 2010 03:46:10 -0700 (PDT) Organization: http://groups.google.com Message-ID: <8cb52af0-4fcf-473d-8006-eac6598b2531@h18g2000yqo.googlegroups.com> References: NNTP-Posting-Host: 206.122.158.4 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1269341170 2446 127.0.0.1 (23 Mar 2010 10:46:10 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 23 Mar 2010 10:46:10 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: h18g2000yqo.googlegroups.com; posting-host=206.122.158.4; posting-account=gRqrnQkAAAAC_02ynnhqGk1VRQlve6ZG User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.1.249.1036 Safari/532.5,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:10665 Date: 2010-03-23T03:46:10-07:00 List-Id: An example (with GNAT you need to make 3 files out of it: lib_1.ads, lib_2.ads, my_prog.adb) : -- A standalone library package Lib_1 is hello: String:= "Hello from library 1 !"; end; -- Library 2 is using Library 1 with Lib_1; package Lib_2 is hello: String:= Lib_1.hello; end; -- An application using Library 2 (and indirectly Library 1) with Lib_2, Ada.Text_IO; procedure My_prog is begin Ada.Text_IO.Put(Lib_2.hello); end; ______________________________________________________________ Gautier's Ada programming -- http://gautiersblog.blogspot.com/ NB: For a direct answer, e-mail address on the following web site: http://www.fechtenafz.ethz.ch/wm_email.htm