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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a1dc3494658b6e5c X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2000-09-10 12:01:45 PST Path: supernews.google.com!sn-xit-02!supernews.com!easynews!newsfeed.frii.net!codeine.org!proxad.net!wanadoo.fr!not-for-mail From: Mathias Dolidon Newsgroups: comp.lang.ada Subject: Re: Discrete random Date: Sun, 10 Sep 2000 21:02:37 +0200 Organization: Wanadoo, l'internet avec France Telecom Message-ID: <39BBDACD.69D3371F@netcourrier.com> References: <39BBD440.6E19616@netcourrier.com> <864s3odrb7.fsf@acm.org> NNTP-Posting-Host: mix-lyon-106-2-74.abo.wanadoo.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: wanadoo.fr 968612503 6655 193.249.102.74 (10 Sep 2000 19:01:43 GMT) X-Complaints-To: abuse@wanadoo.fr NNTP-Posting-Date: 10 Sep 2000 19:01:43 GMT X-Mailer: Mozilla 4.7 [fr] (X11; I; Linux 2.2.14-15mdk i686) X-Accept-Language: en Xref: supernews.google.com comp.lang.ada:576 Date: 2000-09-10T19:01:43+00:00 List-Id: OK. Thank you. And I'm sorry to disturb the newsgroup with my beginner's questions but I really didn't see what the problem was. > > Look at this code : > > > > with ada.numerics; > > with Ada.Numerics.Discrete_Random; > > > procedure ess is > > package pnh is new ada.numerics.discrete_random(positive); > > > > ... > > > > At compile time, GNAT answers there's no 'discrete_random' package in > > 'ada.numerics', but the reference manual specifies it. Where is the > > matter ? > > GNAT is right, Discrete_Random is a child package of Ada.Numerics > so you need an explicit with clause (as opposed to a nested > package, like the ones in Ada.Text_Io, where you need the with > clause only for the container one). > > -- > Laurent Guerby