From: dewar@merv.cs.nyu.edu (Robert Dewar)
Subject: Re: How can I qualify the predefined logical operations
Date: 1998/07/17
Date: 1998-07-17T00:00:00+00:00 [thread overview]
Message-ID: <dewar.900699071@merv> (raw)
In-Reply-To: 6ola80$vhs$1@nnrp1.dejanews.com
Tuck said
<<: package body Some_Package is
: function "And" (Left, Right: Private_Type) return Private_Type is
: begin
: return Standard."And" (Left, Right); -- ERROR: not possible
This should not work (though it may work in some versions of GNAT),
because the predefined "and" is *not* declared in package Standard.
>>
Just so no confusion arises from the above, it is most certainly the
case that the current version of GNAT rejects the above illegal program:
1. package body Some_Package is
2. function "And" (Left, Right: Private_Type) return Private_Type is
3. begin
4. return Standard."And" (Left, Right); -- ERROR: not possible
|
>>> ""And"" not declared in "Standard"
5. end "And";
6. end Some_Package;
next prev parent reply other threads:[~1998-07-17 0:00 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-07-16 0:00 How can I qualify the predefined logical operations hoyngj
1998-07-16 0:00 ` hoyngj
1998-07-17 0:00 ` Robert Dewar [this message]
1998-07-16 0:00 ` dennison
1998-07-16 0:00 ` Tucker Taft
1998-07-16 0:00 ` dennison
1998-07-16 0:00 ` Anonymous
1998-07-17 0:00 ` Andreas Kalla
1998-07-19 0:00 ` Mats Weber
1998-07-25 0:00 ` Matthew Heaney
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox