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,5af5c381381ac5a7 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news4.google.com!feeder.news-service.com!newsfeed.straub-nv.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Ada requires too much typing! Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <03f84a0a-e070-43a9-9b68-920345f64f94@r27g2000yqb.googlegroups.com> <1c704c1e-1b2e-427f-ae0e-3b2a0f976c7c@y4g2000yqy.googlegroups.com> <10855f68-76a1-4600-ba65-464dab6c6274@w12g2000yqj.googlegroups.com> <35dd1a8f-1af8-4979-9663-29f7f4cb302e@g19g2000yqc.googlegroups.com> Date: Thu, 10 Jun 2010 11:20:28 +0200 Message-ID: NNTP-Posting-Date: 10 Jun 2010 11:20:29 CEST NNTP-Posting-Host: 8af380ca.newsspool4.arcor-online.net X-Trace: DXC=8\DMjG7B95C[6=1B@oB@@@4IUKYNOk:`NWL X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:11569 Date: 2010-06-10T11:20:29+02:00 List-Id: On Thu, 10 Jun 2010 01:51:54 -0700 (PDT), Vadim Godunko wrote: > On Jun 10, 12:21�pm, "Dmitry A. Kazakov" > wrote: >> >> Hmm, I never use access to tagged types except for: >> > By "access types" I mean access to classwide types. I use them even less frequently than access to specific types. You probably have in mind containers of class-wide objects? But they are really rare and there is no need to leak access types into their interfaces. (Of course excluding things like doubly-linked lists, graphs etc) >> BTW, by "access types in OOP way", do you mean pointers, references or >> heap-allocated objects? >> > I mean distinguishing of objects by instance in opposite to > distinguishing by value. By instance = by specific type? This is dispatch, need not to go through an access type. Ada nicely allows me to hide access types behind implementations. It is a pity that return by reference was scrapped in favor of Pickwickian functions. Otherwise, even handles to objects might have avoided access types. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de