comp.lang.ada
 help / color / mirror / Atom feed
* Universal type in Ada
@ 2005-06-15 13:07 zw
  2005-06-15 13:32 ` Larry Kilgallen
                   ` (5 more replies)
  0 siblings, 6 replies; 19+ messages in thread
From: zw @ 2005-06-15 13:07 UTC (permalink / raw)


Hi, I am trying to create a Universal type in Ada such as "Object" in
Java so that I could define a function that returns a value in this
Universal type, then I could lower-cast value in this type to its
specific type such as String, Float or any user-defined types. Because
in Java if a method returns an Object, it could be casted to any other
types that are subtypes of Object. Is there a Universal type in Ada?
Could anyone tell me how to create such types in Ada, please?



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

end of thread, other threads:[~2005-06-19 17:38 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-15 13:07 Universal type in Ada zw
2005-06-15 13:32 ` Larry Kilgallen
2005-06-16 13:13   ` zw
2005-06-16 14:36     ` Preben Randhol
2005-06-17  2:54     ` Stephen Leake
2005-06-19 17:38     ` Martin Krischik
2005-06-15 13:55 ` Dmitry A. Kazakov
2005-06-15 14:37   ` Preben Randhol
2005-06-15 16:48     ` Dmitry A. Kazakov
2005-06-15 14:34 ` Preben Randhol
2005-06-16 13:10   ` zw
2005-06-15 16:31 ` Georg Bauhaus
2005-06-16  8:18 ` Ole-Hjalmar Kristensen
2005-06-16 11:59   ` Dmitry A. Kazakov
2005-06-16 13:23     ` zw
2005-06-16 14:19       ` jimmaureenrogers
2005-06-16 14:31       ` Dmitry A. Kazakov
2005-06-19 17:31       ` Martin Krischik
2005-06-19 17:26 ` Martin Krischik

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