comp.lang.ada
 help / color / mirror / Atom feed
From: Mathias Dolidon <matd@netcourrier.com>
Subject: Re: Discrete random
Date: Sun, 10 Sep 2000 21:02:37 +0200
Date: 2000-09-10T19:01:43+00:00	[thread overview]
Message-ID: <39BBDACD.69D3371F@netcourrier.com> (raw)
In-Reply-To: 864s3odrb7.fsf@acm.org


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 <guerby@acm.org>



  reply	other threads:[~2000-09-10 19:02 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
2000-09-10 19:02   ` Mathias Dolidon [this message]
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