comp.lang.ada
 help / color / mirror / Atom feed
From: dgibson@snoopy.cis.ohio-state.edu (david scott gibson)
Subject: Q: Dynamically testing type of any variable
Date: 1996/06/03
Date: 1996-06-03T00:00:00+00:00	[thread overview]
Message-ID: <4ov0miINN99m@snoopy.cis.ohio-state.edu> (raw)


Hi.  Is there any way to determine the type of an arbitrary Ada95
variable at runtime?  Inside a generic unit, I'd like to test if a
generic formal has been instantiated with a scalar type, and then if
so, initialize it to some valid representation.  It doesn't appear
that the 'Class or 'Valid attributes help much since neither is
defined for all types.  Also, I'd prefer not using any exception
trickery to deal with this.  Any ideas?

Dave
--
dgibson@cis.ohio-state.edu





             reply	other threads:[~1996-06-03  0:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-06-03  0:00 david scott gibson [this message]
1996-06-05  0:00 ` Q: Dynamically testing type of any variable Norman H. Cohen
replies disabled

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