comp.lang.ada
 help / color / mirror / Atom feed
* Re: Extension of non-limited type needs limited component
@ 2002-11-15 10:47 Grein, Christoph
  2002-11-15 12:12 ` Dmitry A. Kazakov
  0 siblings, 1 reply; 33+ messages in thread
From: Grein, Christoph @ 2002-11-15 10:47 UTC (permalink / raw)


> >This is not SmallTalk, where you can dispatch to a method that does not
> >exist.
> 
> Sure? And what about this:
> 
> type A is tagged ...
> procedure Foo (L, R : A);
> 
> type B is new A with ....
> 
> X : A'Class := Some_A;
> Y : A'Class := Some_B;
> 
> Foo (X, Y); -- Oops, dispatching to nowhere!

Either compiler catches this and does not compile.
Or during runtime, tag check is performed and will raise Constraint_Error.

No dispatching to nowhere!



^ permalink raw reply	[flat|nested] 33+ messages in thread
* Extension of non-limited type needs limited component
@ 2002-11-13 10:03 Mike
  2002-11-13 12:06 ` Jean-Pierre Rosen
  2002-11-13 14:28 ` Robert A Duff
  0 siblings, 2 replies; 33+ messages in thread
From: Mike @ 2002-11-13 10:03 UTC (permalink / raw)


How do I extend a non-limited tagged type to add a limited component?

Mike



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

end of thread, other threads:[~2002-11-19 14:38 UTC | newest]

Thread overview: 33+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-15 10:47 Extension of non-limited type needs limited component Grein, Christoph
2002-11-15 12:12 ` Dmitry A. Kazakov
2002-11-15 13:29   ` Jean-Pierre Rosen
2002-11-15 14:34     ` Dmitry A. Kazakov
2002-11-15 21:26     ` Robert A Duff
  -- strict thread matches above, loose matches on Subject: below --
2002-11-13 10:03 Mike
2002-11-13 12:06 ` Jean-Pierre Rosen
2002-11-14  9:26   ` Mike
2002-11-14 11:43     ` David C. Hoos, Sr.
2002-11-14 12:33     ` Jean-Pierre Rosen
2002-11-14 14:27       ` Dmitry A. Kazakov
2002-11-14 19:25         ` Randy Brukardt
2002-11-15 10:04           ` Dmitry A. Kazakov
2002-11-15 22:09             ` Robert A Duff
2002-11-16 12:39               ` Dmitry A. Kazakov
2002-11-16 16:15                 ` Robert A Duff
2002-11-17 11:14                   ` Dmitry A. Kazakov
2002-11-17 12:26               ` Dale Stanbrough
2002-11-18 20:33                 ` Randy Brukardt
2002-11-18 21:48               ` Eric
2002-11-19 14:38               ` Eric
2002-11-15 21:41           ` Robert A Duff
2002-11-16  3:54             ` Randy Brukardt
2002-11-15  0:30         ` Robert A Duff
2002-11-15 10:22           ` Dmitry A. Kazakov
2002-11-15 21:56             ` Robert A Duff
2002-11-16 12:39               ` Dmitry A. Kazakov
2002-11-14 23:39     ` Robert A Duff
2002-11-15 21:51       ` Mike
2002-11-13 14:28 ` Robert A Duff
2002-11-14  9:33   ` Mike
2002-11-14  9:35     ` Lutz Donnerhacke
2002-11-14 21:41     ` Robert A Duff

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