comp.lang.ada
 help / color / mirror / Atom feed
* 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

* Re: Visibility of packages in child bodies...
  1996-04-17  0:00 Visibility of packages in child bodies Dale Stanbrough
@ 1996-04-17  0:00 ` Serge Rybin
  0 siblings, 0 replies; 3+ messages in thread
From: Serge Rybin @ 1996-04-17  0:00 UTC (permalink / raw)


In article <4l1uss$acu@goanna.cs.rmit.edu.au>, Dale Stanbrough <dale@goanna.cs.rmit.EDU.AU> writes:
:> 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.


But, for sure, it is possible to refer to STANDARD.useful.
And you can use the "local" renamings of STANDARD.useful instead of
(annoying) library level renaming.

Sergey Rybin




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

* 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

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 Dale Stanbrough
1996-04-17  0:00 ` Serge Rybin
  -- strict thread matches above, loose matches on Subject: below --
1996-04-17  0:00 Jean-Pierre Rosen

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