comp.lang.ada
 help / color / mirror / Atom feed
* preventing inheritance
@ 1996-12-13  0:00 Tom Moran
  1996-12-16  0:00 ` Norman H. Cohen
  0 siblings, 1 reply; 8+ messages in thread
From: Tom Moran @ 1996-12-13  0:00 UTC (permalink / raw)



Given
type T is tagged ...
procedure A(X:T)
function  B(X:T) return ...
procedure C(X:T)
  and
Type U is new T with ...
procedure D(X:T)
procedure E(X:T)
function  F(X:T) return ...

  BUT
B(X:U) is, for reasons beyond my control, illegal.

  What is the best way to prevent/catch B(X:U)?

Currently I replace the inherited B(X:U) with
function  B(X:U) return ... is
begin
  raise this_is_a_no_no;
  return 0; -- all functions need at least one return
end B;




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

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

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-12-13  0:00 preventing inheritance Tom Moran
1996-12-16  0:00 ` Norman H. Cohen
1996-12-16  0:00   ` Tom Moran
1996-12-16  0:00     ` Tom Moran
1996-12-17  0:00       ` Larry Kilgallen
1996-12-18  0:00       ` Norman H. Cohen
1996-12-18  0:00         ` Tom Moran
1996-12-19  0:00     ` Robert I. Eachus

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