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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fdb77,9923b1c3be80099b X-Google-Attributes: gidfdb77,public X-Google-Thread: 103376,9923b1c3be80099b X-Google-Attributes: gid103376,public From: vdelvecc@mesmer.camb.inmet.com (Vince Del Vecchio) Subject: Re: Ada to byte-code compiler works as advertised Date: 1996/09/30 Message-ID: #1/1 X-Deja-AN: 186223813 sender: news@inmet.camb.inmet.com (USENET news) x-nntp-posting-host: mesmer.camb.inmet.com references: <324BF60E.4DEF@gsfc.nasa.gov> to: Mike Stark organization: Intermetrics, Inc. newsgroups: comp.lang.java.advocacy,comp.lang.ada Date: 1996-09-30T00:00:00+00:00 List-Id: Many thanks for the kind words. >>>>> On Fri, 27 Sep 1996 15:43:17 +0000, Mike Stark said: > The only minor problem here (which I attribute entirely to the fact > that the product is a beta version) is that my private record > components in Ada become public instance variables in the corres- > ponding Java class. This does not have any impact on how the system > runs, but to have consistent semantics between the languages the > private record components should IMO become protected instance > variables. This is a tricky area, for a couple of reasons. One is that if you inline a subprogram, then your (generated) code can make references to all sorts of components which are Ada-private. Another is that because we map a package spec to `.class' and body to `_.class', we have to make everything in the spec Java-public or the body won't be able to see into it. I agree that it is frustrating that these two seemingly similar concepts don't correspond a little more closely. We might be able to come up with a scheme to use private and protected components in at least some instances, but this is not likely to change anytime soon. Sorry. > 4. (the part I haven't done) Write a Java class that extends the Ada > class. I have no real doubts that this will work, but I won't get to it > until next week. Similarly, I could write an Ada extension to the Java > class being called from Ada. Examining the generated code leaves me > no doubt that both can be done -- I just have run out of time before the > expiration of the AM1.5 beta license. There should be a 1.6 out soon (hopefully today) to replace the expiring 1.5. -Vince Del Vecchio vdelvecc@inmet.com