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=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.140.175.139 with SMTP id v133mr28968256qhv.12.1447637118454; Sun, 15 Nov 2015 17:25:18 -0800 (PST) X-Received: by 10.182.144.200 with SMTP id so8mr293384obb.5.1447637118413; Sun, 15 Nov 2015 17:25:18 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!news.glorb.com!i2no3352654igv.0!news-out.google.com!l1ni5738igd.0!nntp.google.com!i2no3758390igv.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sun, 15 Nov 2015 17:25:18 -0800 (PST) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2601:18f:900:8350:ba86:87ff:fed6:5907; posting-account=AvekzAoAAABj-TclKcOWQmXwA49MFPGX NNTP-Posting-Host: 2601:18f:900:8350:ba86:87ff:fed6:5907 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Generating a random number, not sure why I'm getting this error From: John Smith Injection-Date: Mon, 16 Nov 2015 01:25:18 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: news.eternal-september.org comp.lang.ada:28383 Date: 2015-11-15T17:25:18-08:00 List-Id: Hello, I don't understand why this is failing to compile. I don't understand the rationale for the failure above all else: with Ada.Numerics.Discrete_Random; ... Ada.Numerics.Discrete_Random.Reset(Ada.Numerics.Discrete_Random.Generator); And this is the error that I get: :13:15: invalid prefix in selected component "Ada.Numerics.Discrete_Random" -- refers to the first Ada.Numerics.Discrete_Random... The Ada documentation says that Discrete_Random has a Reset function, so why the error? https://www2.adacore.com/gap-static/GNAT_Book/html/aarm/AA-A-5-2.html I think I'm grossly misunderstanding how I'm calling Ada functions inside of packages.