From: agate!spool.mu.edu!uwm.edu!cs.utexas.edu!torn!nott!netfs!news@ucbvax.Berk eley.EDU (DON BERRYMAN)
Subject: Visibility
Date: 23 Dec 92 23:35:19 GMT [thread overview]
Message-ID: <1992Dec23.233519.21523@netfs.dnd.ca> (raw)
I have a quesiton on Visiblity. The following Ada code
generates the following error.
package datatypes is
subtype widget is integer;
end datatypes;
with datatypes;
package testvisibility is
function widget (a: integer) return datatypes.widget;
end testvisibility;
$ ada testviz
7 function widget (a: integer) return datatypes.widget;
.........................................................1
%ADAC-E-NOTDECLALLHIDER, (1) All declarations with designator widget are
globally hidden by function specification widget at line 7 [LRM 8.
3(16)]
%ADAC-E-ERRPROCESS, Errors compiling package specification testvisibility
in
file FLD$CENTRAL:[BERRYMAN.MFP.MOTIF]TESTVIZ.ADA;4
%ADAC-E-ENDDIAGS, Ada compilation completed with 1 diagnostic
I can see why this would have happened if I'd coded:
with datatypes; USE DATATYPES;
package testvisibility is
function widget (a: integer) return widget;
end testvisibility;
But since I have a full specification for DATATYPES.WIDGET
why is there a problem???
Don Berryman
Defence Research Establishment Pacific
Canadian Forces Base Esquimalt
Victoria, BC, CANADA, V0S-1B0
604-363-2731 604-363-2856fax
berryman@orca.drep.dnd.ca
next reply other threads:[~1992-12-23 23:35 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
1992-12-23 23:35 agate!spool.mu.edu!uwm.edu!cs.utexas.edu!torn!nott!netfs!news [this message]
-- strict thread matches above, loose matches on Subject: below --
1992-12-24 2:16 Visibility Richard Pattis
1992-12-24 11:48 Visibility agate!spool.mu.edu!darwin.sura.net!Sirius.dfn.de!chx400!sicsun!disuns2!lg
2003-06-04 22:12 visibility And838N
2003-06-05 10:35 ` visibility Preben Randhol
2003-06-05 15:19 ` visibility Frank J. Lhota
[not found] <666191F6.00B406DF.0015D3EC@netscape.net>
2003-06-05 15:16 ` visibility David C. Hoos
2003-06-06 5:15 Visibility christoph.grein
2003-06-07 8:21 Visibility And838N
2003-06-07 17:29 ` Visibility Jeffrey Carter
[not found] <009C830A.36D4A463.0015D3EC@netscape.net>
2003-06-07 12:18 ` Visibility David C. Hoos, Sr.
2003-06-08 3:28 ` Visibility Hyman Rosen
2003-06-08 10:20 ` Visibility Frank J. Lhota
2003-06-08 16:18 ` Visibility Robert I. Eachus
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox