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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,aea4cc77526f5e4a X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!post01.iad01!news.cv.net!not-for-mail Date: Tue, 26 Feb 2008 00:10:51 -0500 From: "John W. Kennedy" User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Separate Compilation in Programming Languages References: <7xJvj.7420$Ru4.4246@newssvr19.news.prodigy.net> <5b9wj.4639$Mh2.1432@nlpi069.nbdc.sbc.com> <5Ekwj.10401$0o7.6822@newssvr13.news.prodigy.net> <%Ntwj.12620$Ch6.11402@newssvr11.news.prodigy.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <47c39f6c$0$15196$607ed4bc@cv.net> Organization: Optimum Online NNTP-Posting-Host: 68.193.246.216 X-Complaints-To: abuse@cv.net Xref: g2news1.google.com comp.lang.ada:20075 Date: 2008-02-26T00:10:51-05:00 List-Id: Ray Blaak wrote: > Ray Blaak writes: >>> Perhaps. But I still don't see how one can defer the dependency of a >>> Java signature to the implementation of the Java class and prevent >>> the need for recompiling the entire architecture when the signature of >>> a parent class changes. >> Maybe the disconnect is here. Are you talking about how spec changes ripple >> down, or are you talking about how body changes ripple down? Spec changes >> affect clients and bodies, both in Java in Ada. Body (implementation) do not >> affect clients that only refer to the spec, both in Java and Ada. > > It also occurs to me to wonder if you were assuming the Java interface and > implementation are in the same file. If so, the issues you say would indeed > happen. > > But usually the interface and its implementations are in separate files, as > per the usual Java rule of one class per file. That separation is what allows > Java to have separate compilation. Actually, this doesn't accomplish as much as you wish, in practice, as it will eventually be necessary to have a constructor for the real class, or else a static factory method. -- John W. Kennedy "The blind rulers of Logres Nourished the land on a fallacy of rational virtue." -- Charles Williams. "Taliessin through Logres: Prelude"