From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,INVALID_MSGID, PLING_QUERY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,9fa3fd87992da829 X-Google-Attributes: gid103376,public From: Brian Rogoff Subject: Re: Q:ADA/Java/C++ feature mapping question!? Date: 2000/01/20 Message-ID: #1/1 X-Deja-AN: 575430974 References: <8672ec$e28$1@fleetstreet.Austria.EU.net> <38875E47.75A994CA@averstar.com> Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: nntp1.ba.best.com 948403117 211 bpr@206.184.139.136 MIME-Version: 1.0 Newsgroups: comp.lang.ada Date: 2000-01-20T00:00:00+00:00 List-Id: On Thu, 20 Jan 2000, Tucker Taft wrote: > alex wrote: > > > > Question: What are the corresponding ADA keywords to the given C++/Java > > features, and which keywords do exist in ADA which have no representation in > > C++/Java, and what do they mean. I did have a look at the > > http://www.adahome.com/rm95/ Ada reference Manual, but this would be a > > longer way to go then I would like to. So could one of you who knows both > > languages help me out? > > > > C++/Java Keywords of interest to me: > > > > interface (Java) concept for abstract interface suitable for multiple > > inheritance > > Generic signatures are about the closest thing in Ada 95. A generic > signature is a generic package declaration with only a formal part, > and no declarations in the visible part. They are useful in combination > with formal package parameters. Not really quite the same, since they are really "package interfaces" rather than "type interfaces" as in Java . Its not as easy to combine them as it is to combine Java interfaces either, or more specifically, no equivalent to SML's "include". That said, they are quite useful. You mentioned previously that something like Java interfaces was likely to find its way into the next generation Ada. Are there any pointers to proposals we could look at? -- Brian