comp.lang.ada
 help / color / mirror / Atom feed
* Re: Visibility of packages in child bodies...
@ 1996-04-17  0:00 Jean-Pierre Rosen
  0 siblings, 0 replies; 3+ messages in thread
From: Jean-Pierre Rosen @ 1996-04-17  0:00 UTC (permalink / raw)


At 05:17 17/04/1996 GMT, you wrote:
>If a series of library packages are created as...
>
>        package useful is...
>
>        package a is...
>
>        package a.useful is...
>
>then in the package body of a.useful is it possible to
>refer to package "useful" without using a library level renaming?
>
>e.g. in the following...
>
>        with useful;
>
>        package body a.useful is...
>
>package "useful" is not directly visible.
>
>
with Standard.Useful;

should do the trick. All library packages are children of Standard.
+------------------------------------o-------------------------------------+
| P-mail:                            | E-mail: rosen@enst.fr               |
|   ADALOG - 27 avenue de Verdun     |    Tel: +33 1 46 45 51 12           |
|   92170 Vanves - FRANCE            |    Fax: +33 1 46 45 52 49           |
+------------------------------------o-------------------------------------+




^ permalink raw reply	[flat|nested] 3+ messages in thread
* Visibility of packages in child bodies...
@ 1996-04-17  0:00 Dale Stanbrough
  1996-04-17  0:00 ` Serge Rybin
  0 siblings, 1 reply; 3+ messages in thread
From: Dale Stanbrough @ 1996-04-17  0:00 UTC (permalink / raw)


If a series of library packages are created as...

	package useful is...
	
	package a is...
	
	package a.useful is...
	
then in the package body of a.useful is it possible to
refer to package "useful" without using a library level renaming?

e.g. in the following...

	with useful;
	
	package body a.useful is...
	
package "useful" is not directly visible.


The apparent solution...

	with useful;
	package useful_renaming_because_of_collision renames useful;
	
	
	with useful_renaming_because_of_collision;
	
	pacakge body a.useful is...
	
seems a bit annoying, in that a new library entry has to be created.

Dale




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1996-04-17  0:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-04-17  0:00 Visibility of packages in child bodies Jean-Pierre Rosen
  -- strict thread matches above, loose matches on Subject: below --
1996-04-17  0:00 Dale Stanbrough
1996-04-17  0:00 ` Serge Rybin

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