comp.lang.ada
 help / color / mirror / Atom feed
From: Dale Stanbrough <dale@goanna.cs.rmit.EDU.AU>
Subject: Problems with visibility of implicit function...
Date: 1996/06/18
Date: 1996-06-18T00:00:00+00:00	[thread overview]
Message-ID: <4q67nn$sp5@goanna.cs.rmit.EDU.AU> (raw)


I've got some problems calling an implicity declared function
which is hidden by an explicity declared one. I've tried
renaming, only to end up with infinite recursion. Is the
implicity declared function "hidden from all visibility"?

--------------------------------------------
package lists is
	type list is private;
	
	function full(item:list) return boolean;
private
	...
end lists;

with lists;
package stacks is
	type stack is private;
	
	function full(item:stack) return boolean;
	
private
	type stack is new lists.list;
	-- inherited & implicitly defined full...
	-- function full(item:stack) return boolean;
end;

package body stacks is

	function full(item:stack) return boolean is
	begin
		...what?
		should i just call on lists.full?
	end;
	
end stacks;


BTW WRT Annotated LRM, 8.5.4(8.g), what do alligators have to
do with squirrels?  ?:-)

Dale




             reply	other threads:[~1996-06-18  0:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-06-18  0:00 Dale Stanbrough [this message]
1996-06-18  0:00 ` Problems with visibility of implicit function Tucker Taft
1996-06-18  0:00   ` progers
1996-06-19  0:00     ` Robert A Duff
1996-06-19  0:00 ` Norman H. Cohen
1996-06-19  0:00 ` Chris Warack <sys mgr>
replies disabled

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