comp.lang.ada
 help / color / mirror / Atom feed
* Overloading for T and T'Class
@ 1994-11-11 21:33 John Volan
  1994-11-14  2:07 ` David Weller
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: John Volan @ 1994-11-11 21:33 UTC (permalink / raw)


In Ada9X, is it legal to overload the same subprogram name for both
some tagged type T and its class-wide type T'Class?  For example:

	package P is
	  type T is tagged ... ;
	  procedure Op (X : in out T);
	  procedure Op (X : in out T'Class);
	  ...
	end P;

If this is legal, what would be the ramifications of doing this?
Would it even make any sense to do this?  If it did make sense, does
anyone have any thoughts as to where this might turn out to be useful?

This might seem like a strange question, but it's been nagging me for a 
while, and I'd appreciate whatever insights you folks out there might
have.  Thanks in advance!

					John Volan

--------------------------------------------------------------------------------
--  Me : Person := (Name                => "John Volan",
--                  Company             => "Raytheon Missile Systems Division",
--                  E_Mail_Address      => "jgv@swl.msd.ray.com",
--                  Affiliation         => "Enthusiastic member of Team Ada!",
--                  Humorous_Disclaimer => "These opinions are undefined " &
--                                         "by my employer and therefore " &
--                                         "any use of them would be "     &
--                                         "totally erroneous.");
--------------------------------------------------------------------------------





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

end of thread, other threads:[~1994-11-19  4:54 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1994-11-11 21:33 Overloading for T and T'Class John Volan
1994-11-14  2:07 ` David Weller
1994-11-15  5:01   ` Cyrille Comar
1994-11-15  2:22 ` Bob Duff
1994-11-16 11:33   ` Robert I. Eachus
     [not found] ` <3a6goo$j7s@starbase.neosoft.com>
1994-11-15  2:35   ` Tucker Taft
1994-11-15 11:39     ` David Weller
1994-11-16  4:32       ` Brad Balfour
1994-11-16 14:34         ` John Volan
1994-11-15 14:15     ` Norman H. Cohen
1994-11-16  1:22 ` John Volan
1994-11-16 11:59   ` David Weller
1994-11-19  4:54   ` Cyrille Comar

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