TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy

TEAM-ADA@LISTSERV.ACM.ORG

Options: Use Forum View

Use Proportional Font
Show Text Part by Default
Condense Mail Headers

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

Print Reply
Sender:
"Team Ada: Ada Advocacy Issues (83 & 95)" <[log in to unmask]>
Subject:
From:
Mike Brenner <[log in to unmask]>
Date:
Wed, 15 Apr 1998 14:51:38 -0400
Reply-To:
Mike Brenner <[log in to unmask]>
Parts/Attachments:
text/plain (21 lines)
Mike > The problem with renamings of packages is that they only
     > rename the visible part.

Sam > ... you're talking about having multiple bodies for the same spec,
    > e.g. to select a body based on what target you're on. This is
    > done outside the language in Ada...

Yes, thank you. It is now done outside the language, and the language
would be bettered by permitting it to be done inside the language.

Of the two proposals I gave to permit this (a package body renaming
and passing a nongeneric package as a parameter to a nongeneric
package) the package parameter is the better way to permit this in
Ada 200X.

Of course, you are right, that at the current time there is no way
to do this useful thing within the Ada language, the way it is with
the package specs.

Mike

ATOM RSS1 RSS2