From: Laurent Guerby <guerby@acm.org>
Subject: Re: Discrete random
Date: 10 Sep 2000 20:39:56 +0200
Date: 2000-09-10T18:38:54+00:00 [thread overview]
Message-ID: <864s3odrb7.fsf@acm.org> (raw)
In-Reply-To: 39BBD440.6E19616@netcourrier.com
Mathias Dolidon <matd@netcourrier.com> 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 <guerby@acm.org>
next prev parent reply other threads:[~2000-09-10 18:39 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-09-10 18:34 Discrete random Mathias Dolidon
2000-09-10 18:39 ` Laurent Guerby [this message]
2000-09-10 19:02 ` Mathias Dolidon
2000-09-11 18:23 ` Laurent Guerby
2000-09-10 18:41 ` Mathias Dolidon
2000-09-10 19:19 ` (null)
2000-09-11 4:07 ` David C. Hoos, Sr.
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox