TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy


Options: Use Classic View

Use Monospaced Font
Show Text Part by Default
Condense Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Mime-Version: 1.0
Sender: "Team Ada: Ada Advocacy Issues (83 & 95)" <[log in to unmask]>
From: Ed Falis <[log in to unmask]>
Date: Mon, 4 Dec 2000 10:14:42 -0500
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset=iso-8859-1
Reply-To: Ed Falis <[log in to unmask]>
Parts/Attachments: text/plain (16 lines)
Martin Carlisle wrote:
>It should be noted that Ada 95 also supports "multiple views" (see Section
>4.6.3 of the Ada 95 Rationale).  Admittedly the syntax is more complex than
>Java interfaces, and dynamic testing of interfaces (does object X support
>interface Y?) is not allowed; however, it would seem adequate for their
>purposes given the limited information at the URL you mentioned.

They refer to this technique at some point in their analysis, saying that
it's theoretically possible to use Ada in the context of their framework, but
that the technique introduces too much complexity into the code, and too many
extra classes.  This latter is presumably because a view has to specify some
type for the access discriminant, so if the "outer" types are unrelated to
each other, multiple view types would have to be declared.

- Ed