comp.lang.ada
 help / color / mirror / Atom feed
From: bobduff@world.std.com (Robert A Duff)
Subject: Re: "Use"ing Enumerated type values?
Date: 1996/02/24
Date: 1996-02-24T00:00:00+00:00	[thread overview]
Message-ID: <Dn9A71.67F@world.std.com> (raw)
In-Reply-To: 23FEB199614115172@ewir-wr

In article <23FEB199614115172@ewir-wr>, GAFFNEY.BRIAN <gaffney@ewir-wr> wrote:
>Is there any way to refer directly to the values of a type without "use"ing the
>entire package?

No.

>The RM seems to indicate that "use type" is intended for using operations of
>the type, so I guess it doesn't work with values... (?)

Operators.  Not operations.  That is, "use type" makes "+", "=", "and",
"xor", etc., visible (assuming whatever type it is has those operators).
And it's only the *primitive* operators -- the predefined ones, plus any
user-defined ones that are declared in the same package.

- Bob




      parent reply	other threads:[~1996-02-24  0:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-02-23  0:00 "Use"ing Enumerated type values? GAFFNEY.BRIAN
1996-02-23  0:00 ` James A. Krzyzanowski
1996-02-24  0:00   ` Robert Dewar
1996-02-24  0:00 ` Robert A Duff [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox