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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a1dc3494658b6e5c X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2000-09-10 11:41:19 PST Path: supernews.google.com!sn-xit-02!10.10.220.73.MISMATCH!sn-xit-09!supernews.com!freenix!fr.usenet-edu.net!usenet-edu.net!proxad.net!grolier!club-internet!not-for-mail From: Laurent Guerby Newsgroups: comp.lang.ada Subject: Re: Discrete random Date: 10 Sep 2000 20:39:56 +0200 Organization: Club-Internet (France) Message-ID: <864s3odrb7.fsf@acm.org> References: <39BBD440.6E19616@netcourrier.com> NNTP-Posting-Host: nas27-35.vlt.club-internet.fr X-Trace: front5m.grolier.fr 968611134 7847 195.36.224.35 (10 Sep 2000 18:38:54 GMT) NNTP-Posting-Date: 10 Sep 2000 18:38:54 GMT X-Newsreader: Gnus v5.7/Emacs 20.5 Xref: supernews.google.com comp.lang.ada:575 Date: 2000-09-10T18:38:54+00:00 List-Id: Mathias Dolidon writes: > 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