comp.lang.ada
 help / color / mirror / Atom feed
From: Martin Krischik <krischik@users.sourceforge.net>
Subject: Re: Universal type in Ada
Date: Sun, 19 Jun 2005 19:38:41 +0200
Date: 2005-06-19T19:38:41+02:00	[thread overview]
Message-ID: <1975302.ffmyICCkXN@linux1.krischik.com> (raw)
In-Reply-To: 1118927593.623683.105940@g44g2000cwa.googlegroups.com

zw@cs.man.ac.uk wrote:

> Yes, I am trying to transfer a program in Java to Ada. Because as far
> as I know there is no reflection mechanisms in Ada, so what I do is to
> try to create a new API for reflection in Ada that would do someting
> similar to java.lang.reflect

Not quite true. Ada does have some form of reflection via the tag. You could
use the external tag or the expanded name to determine the type of an
object. 

http://www.adaic.com/standards/rm-amend/html/RM-3-9.html

Also the operator "in" can be helpfull.

And just like Java Ada will issue an exception when you convert objects
which should not be converted.

Martin 

-- 
mailto://krischik@users.sourceforge.net
Ada programming at: http://ada.krischik.com




  parent reply	other threads:[~2005-06-19 17:38 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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
replies disabled

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