From: John Smith <yoursurrogategod@gmail.com>
Subject: Generating a random number, not sure why I'm getting this error
Date: Sun, 15 Nov 2015 17:25:18 -0800 (PST)
Date: 2015-11-15T17:25:18-08:00 [thread overview]
Message-ID: <c1e10951-7548-46a9-9df2-6f3a531a6bf2@googlegroups.com> (raw)
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.
next reply other threads:[~2015-11-16 1:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-16 1:25 John Smith [this message]
2015-11-16 2:29 ` Generating a random number, not sure why I'm getting this error Jeffrey R. Carter
2015-11-16 2:53 ` John Smith
2015-11-16 8:51 ` Simon Wright
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox