comp.lang.ada
 help / color / mirror / Atom feed
From: stt@inmet.inmet.com
Subject: Re: Visibility in Embedded Packages
Date: 29 Oct 90 15:29:00 GMT	[thread overview]
Message-ID: <20600070@inmet> (raw)
In-Reply-To: 718@ajpo.sei.cmu.edu


Re: Visibility in embedded packages

Only the third method:
  package Operators
   function "+"(Left, Right : Integer_Type) return Integer_Type
      renames Standard_Types."+";
   . . .

is correct.
This is because that the declaration of "+" in
package Operators hides the outer declaration of "+" in Standard_Types,
requiring the expanded-name notation.

The version which requires Standard."+" is totally wrong,
since the Integer_Type is not declared in package Standard.


S. Tucker Taft
Intermetrics, Inc.
Cambridge, MA  02138

  reply	other threads:[~1990-10-29 15:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1990-10-28 15:51 Visibility in Embedded Packages Richard Dye
1990-10-29 15:29 ` stt [this message]
1990-10-31 20:21 ` Jean Pierre Rosen
  -- strict thread matches above, loose matches on Subject: below --
1990-10-30 14:44 "Norman H. Cohen"
replies disabled

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