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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,9e7db243dfa070d7 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Path: g2news2.google.com!news4.google.com!feeder2.cambriumusenet.nl!feed.tweaknews.nl!195.96.0.7.MISMATCH!newsfeed.utanet.at!news.mixmin.net!news2.arglkargh.de!news.n-ix.net!news.belwue.de!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Do people who use Ada also use ocaml or F#? Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <1mjd3udlxgzp3$.1abzmwnslu9ym$.dlg@40tude.net> <1e1y89ly171$.91bu2wu1e2rk$.dlg@40tude.net> Date: Sun, 31 Oct 2010 21:00:09 +0100 Message-ID: NNTP-Posting-Date: 31 Oct 2010 21:00:09 CET NNTP-Posting-Host: 34a661db.newsspool1.arcor-online.net X-Trace: DXC=`kW3HQ5`GP@=8m7nZkdN^@ic==]BZ:afN4Fo<]lROoRA<`=YMgDjhgBjT0RSF^oPHL[6LHn;2LCVN[ On Sun, 31 Oct 2010 16:32:57 +0100, Yannick Duchêne (Hibou57) wrote: > Le Sun, 31 Oct 2010 16:07:10 +0100, Dmitry A. Kazakov > a écrit: >>> You can build new components that use other components, hence you can >>> call it aggregation, but this is hidden in the body, so nobody cares, >>> it's not visible; unlike inheritance where the whole dependency has to >>> be visible. >> >> But reusable components are visible as well, e.g. a list [component 1] of >> arrays [component 2] of something [component 3]. > Yes, they are also visible, but the visibility you need to have is not the > same. Visibility here, does not really mean “what is visible”, instead it > means “what needs to viewed”. This is not in favor of composition, which is less friendly to information hiding than inheritance. > With composition, you just need to see the interfaces You don't have interfaces without inheritance. The very first step of separation interface from concrete implementation involves two types and a class of. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de