From: Hyman Rosen <hyrosen@mail.com>
Subject: Re: Multiple interface inheritance workaround in Ada 95 / Ada 0x to satisfy a Java language advocate?
Date: Tue, 30 Jul 2002 18:10:18 -0400
Date: 2002-07-30T18:10:18-04:00 [thread overview]
Message-ID: <1028066881.847132@master.nyc.kbcfp.com> (raw)
In-Reply-To: wccbs8pgh3y.fsf@shell01.TheWorld.com
Robert A Duff wrote:
> I would like to see an example of why it is wanted. On the face of it,
> it seems weird to reach off into the far distance and ask whether this
> thing I have my hands on just *happens* to obey some totally unrelated
> interface.
In C++, it's just a part of RTTI (run-time type inquiry).
I imagine it's used mostly in "interface discovery" contexts.
That is, you have a pointer to an interface, and you want to
know whether the underlying object supports other, possibly
related interfaces. So you do the cast, and if returns a
non-null value, you know the interface is supported. Both
COM and CORBA have very similar concepts.
next prev parent reply other threads:[~2002-07-30 22:10 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-29 12:05 Multiple interface inheritance workaround in Ada 95 / Ada 0x to satisfy a Java language advocate? Colin Paul Gloster
2002-07-29 12:42 ` Jean-Pierre Rosen
2002-07-29 14:18 ` Colin Paul Gloster
2002-07-29 14:58 ` Jean-Pierre Rosen
2002-07-29 17:04 ` Pascal Obry
2002-07-30 13:57 ` Hyman Rosen
2002-07-30 14:27 ` Jean-Pierre Rosen
2002-07-30 15:30 ` Hyman Rosen
2002-07-30 17:34 ` Jim Rogers
2002-07-30 18:20 ` Hyman Rosen
2002-07-30 20:22 ` Robert A Duff
2002-07-30 19:17 ` Robert A Duff
2002-07-30 22:10 ` Hyman Rosen [this message]
2002-07-29 17:27 ` Hyman Rosen
2002-07-30 8:13 ` Dmitry A. Kazakov
2002-07-30 20:55 ` Robert Dewar
2002-07-31 22:08 ` Dmitry A.Kazakov
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox