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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,fa22a73e140a6fd1 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Received: by 10.68.74.201 with SMTP id w9mr11860578pbv.0.1328704772445; Wed, 08 Feb 2012 04:39:32 -0800 (PST) Path: wr5ni1172pbc.0!nntp.google.com!news2.google.com!eweka.nl!lightspeed.eweka.nl!feeder.erje.net!news.mixmin.net!aioe.org!.POSTED!not-for-mail From: =?utf-8?Q?Yannick_Duch=C3=AAne_=28Hibou57?= =?utf-8?Q?=29?= Newsgroups: comp.lang.ada Subject: Re: Object-Oriented style question Date: Wed, 08 Feb 2012 13:39:31 +0100 Organization: Ada @ Home Message-ID: References: <4f098fcb$0$6577$9b4e6d93@newsspool3.arcor-online.net> NNTP-Posting-Host: Nct6a+O2WWeAxakAlXSC1w.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: Opera Mail/11.61 (Linux) X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable Date: 2012-02-08T13:39:31+01:00 List-Id: Le Sun, 08 Jan 2012 13:45:00 +0100, Georg Bauhaus = a =C3=A9crit: > First question: Will it be preferable if those introducing O-O > in Ada use a (virtual) rubber eraser and clean up introductions > by removing unneeded (and in some cases dangerous) "access" from > declarations of O-O primitive operations? If you talk about student, there will soon learn about unneeded access, = = and will want to go with it if their background suggest it. > Second question: Technically, will it be advisable to work on > "access-free" bindings to O-O libraries because the Ada language > makes O-O types be by-reference as is? Or on facilitating these > with the help of a compiler matching by-reference mechanics of > foreign languages? If by =E2=80=9Ccompiler=E2=80=9D you mean =E2=80=9CAda compiler=E2=80=9D= (or else what?), this would be an = error I believe. Ada's interface to C was first defined to use access ty= pe = where C did not. This was confusing and had to be fixed. -- = =E2=80=9CSyntactic sugar causes cancer of the semi-colons.=E2=80=9D [1] =E2=80=9CStructured Programming supports the law of the excluded muddle.= =E2=80=9D [1] [1]: Epigrams on Programming =E2=80=94 Alan J. =E2=80=94 P. Yale Univers= ity