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=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,4fa6947d273daad1 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!e1g2000yqe.googlegroups.com!not-for-mail From: Robin Newsgroups: comp.lang.ada Subject: Re: newbie ada question Date: Sat, 1 May 2010 14:24:40 -0700 (PDT) Organization: http://groups.google.com Message-ID: <29a9bda6-2661-4a6b-9da0-0a569254da71@e1g2000yqe.googlegroups.com> References: <8cb52af0-4fcf-473d-8006-eac6598b2531@h18g2000yqo.googlegroups.com> NNTP-Posting-Host: 4.240.123.83 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1272749080 8901 127.0.0.1 (1 May 2010 21:24:40 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 1 May 2010 21:24:40 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: e1g2000yqe.googlegroups.com; posting-host=4.240.123.83; posting-account=r2K4_QoAAADDISucOoVl4ivT07MlnAaj User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:11279 Date: 2010-05-01T14:24:40-07:00 List-Id: Thanks for your answer :-) I appreciate it.....Robin, haver a good day, and be safe. Gautier write-only wrote: > 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